@modern-js/plugin-testing 2.39.2 → 2.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/index.js +0 -35
- package/dist/esm/cli/index.js +0 -35
- package/dist/esm-node/cli/index.js +0 -35
- package/package.json +15 -15
package/dist/cjs/cli/index.js
CHANGED
@@ -81,41 +81,6 @@ const testingPlugin = () => {
|
|
81
81
|
await (0, import_test.default)(api);
|
82
82
|
});
|
83
83
|
},
|
84
|
-
validateSchema() {
|
85
|
-
return [
|
86
|
-
{
|
87
|
-
target: "testing",
|
88
|
-
schema: {
|
89
|
-
type: "object",
|
90
|
-
additionalProperties: false,
|
91
|
-
properties: {
|
92
|
-
transformer: {
|
93
|
-
type: "string",
|
94
|
-
enum: [
|
95
|
-
"babel-jest",
|
96
|
-
"ts-jest"
|
97
|
-
]
|
98
|
-
},
|
99
|
-
jest: {
|
100
|
-
typeof: [
|
101
|
-
"object",
|
102
|
-
"function"
|
103
|
-
]
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
},
|
108
|
-
{
|
109
|
-
target: "tools.jest",
|
110
|
-
schema: {
|
111
|
-
typeof: [
|
112
|
-
"object",
|
113
|
-
"function"
|
114
|
-
]
|
115
|
-
}
|
116
|
-
}
|
117
|
-
];
|
118
|
-
},
|
119
84
|
config() {
|
120
85
|
const appContext = api.useAppContext();
|
121
86
|
testingExportsUtils = (0, import_utils.createRuntimeExportsUtils)(appContext.internalDirectory, "testing");
|
package/dist/esm/cli/index.js
CHANGED
@@ -62,41 +62,6 @@ var testingPlugin = function() {
|
|
62
62
|
});
|
63
63
|
}));
|
64
64
|
},
|
65
|
-
validateSchema: function validateSchema() {
|
66
|
-
return [
|
67
|
-
{
|
68
|
-
target: "testing",
|
69
|
-
schema: {
|
70
|
-
type: "object",
|
71
|
-
additionalProperties: false,
|
72
|
-
properties: {
|
73
|
-
transformer: {
|
74
|
-
type: "string",
|
75
|
-
enum: [
|
76
|
-
"babel-jest",
|
77
|
-
"ts-jest"
|
78
|
-
]
|
79
|
-
},
|
80
|
-
jest: {
|
81
|
-
typeof: [
|
82
|
-
"object",
|
83
|
-
"function"
|
84
|
-
]
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
},
|
89
|
-
{
|
90
|
-
target: "tools.jest",
|
91
|
-
schema: {
|
92
|
-
typeof: [
|
93
|
-
"object",
|
94
|
-
"function"
|
95
|
-
]
|
96
|
-
}
|
97
|
-
}
|
98
|
-
];
|
99
|
-
},
|
100
65
|
config: function config() {
|
101
66
|
var appContext = api.useAppContext();
|
102
67
|
testingExportsUtils = createRuntimeExportsUtils(appContext.internalDirectory, "testing");
|
@@ -45,41 +45,6 @@ const testingPlugin = () => {
|
|
45
45
|
await test(api);
|
46
46
|
});
|
47
47
|
},
|
48
|
-
validateSchema() {
|
49
|
-
return [
|
50
|
-
{
|
51
|
-
target: "testing",
|
52
|
-
schema: {
|
53
|
-
type: "object",
|
54
|
-
additionalProperties: false,
|
55
|
-
properties: {
|
56
|
-
transformer: {
|
57
|
-
type: "string",
|
58
|
-
enum: [
|
59
|
-
"babel-jest",
|
60
|
-
"ts-jest"
|
61
|
-
]
|
62
|
-
},
|
63
|
-
jest: {
|
64
|
-
typeof: [
|
65
|
-
"object",
|
66
|
-
"function"
|
67
|
-
]
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
},
|
72
|
-
{
|
73
|
-
target: "tools.jest",
|
74
|
-
schema: {
|
75
|
-
typeof: [
|
76
|
-
"object",
|
77
|
-
"function"
|
78
|
-
]
|
79
|
-
}
|
80
|
-
}
|
81
|
-
];
|
82
|
-
},
|
83
48
|
config() {
|
84
49
|
const appContext = api.useAppContext();
|
85
50
|
testingExportsUtils = createRuntimeExportsUtils(appContext.internalDirectory, "testing");
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.41.0",
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
21
21
|
"main": "./dist/cjs/cli/index.js",
|
@@ -117,7 +117,7 @@
|
|
117
117
|
"@modern-js-reduck/plugin-immutable": "^1.1.10",
|
118
118
|
"@modern-js-reduck/store": "^1.1.10",
|
119
119
|
"@rsbuild/babel-preset": "0.0.7",
|
120
|
-
"@testing-library/jest-dom": "^5.
|
120
|
+
"@testing-library/jest-dom": "^5.16.1",
|
121
121
|
"@testing-library/react": "^13.4.0",
|
122
122
|
"@types/testing-library__jest-dom": "^5.14.3",
|
123
123
|
"path-to-regexp": "^6.2.0",
|
@@ -125,22 +125,22 @@
|
|
125
125
|
"babel-jest": "^29.5.0",
|
126
126
|
"enhanced-resolve": "5.12.0",
|
127
127
|
"identity-obj-proxy": "^3.0.0",
|
128
|
-
"jest": "^29
|
128
|
+
"jest": "^29",
|
129
129
|
"jest-environment-jsdom": "^29.5.0",
|
130
130
|
"@jest/types": "^29.5.0",
|
131
131
|
"ts-jest": "^29.1.0",
|
132
132
|
"yargs": "^17.0.1",
|
133
|
-
"@swc/helpers": "0.5.
|
134
|
-
"@modern-js/babel-compiler": "2.
|
135
|
-
"@modern-js/utils": "2.
|
136
|
-
"@modern-js/plugin": "2.
|
137
|
-
"@modern-js/
|
138
|
-
"@modern-js/
|
133
|
+
"@swc/helpers": "0.5.3",
|
134
|
+
"@modern-js/babel-compiler": "2.41.0",
|
135
|
+
"@modern-js/utils": "2.41.0",
|
136
|
+
"@modern-js/plugin": "2.41.0",
|
137
|
+
"@modern-js/types": "2.41.0",
|
138
|
+
"@modern-js/prod-server": "2.41.0"
|
139
139
|
},
|
140
140
|
"peerDependencies": {
|
141
141
|
"react": ">=17",
|
142
142
|
"react-dom": ">=17",
|
143
|
-
"@modern-js/runtime": "^2.
|
143
|
+
"@modern-js/runtime": "^2.41.0"
|
144
144
|
},
|
145
145
|
"peerDependenciesMeta": {
|
146
146
|
"@modern-js/runtime": {
|
@@ -155,11 +155,11 @@
|
|
155
155
|
"@types/node": "^14",
|
156
156
|
"@types/yargs": "^17.0.2",
|
157
157
|
"typescript": "^5",
|
158
|
-
"@modern-js/core": "2.
|
159
|
-
"@modern-js/runtime": "2.
|
160
|
-
"@
|
161
|
-
"@
|
162
|
-
"@scripts/jest-config": "2.
|
158
|
+
"@modern-js/core": "2.41.0",
|
159
|
+
"@modern-js/runtime": "2.41.0",
|
160
|
+
"@modern-js/bff-core": "2.41.0",
|
161
|
+
"@scripts/build": "2.41.0",
|
162
|
+
"@scripts/jest-config": "2.41.0"
|
163
163
|
},
|
164
164
|
"sideEffects": false,
|
165
165
|
"publishConfig": {
|