@modern-js/plugin-testing 2.22.1 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +26 -0
- package/dist/cjs/cli/index.js +19 -1
- package/dist/esm/cli/index.js +20 -2
- package/dist/esm-node/cli/index.js +20 -2
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# @modern-js/plugin-testing
|
2
2
|
|
3
|
+
## 2.23.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 7e6fb5f: chore: publishConfig add provenance config
|
8
|
+
|
9
|
+
chore: publishConfig 增加 provenance 配置
|
10
|
+
|
11
|
+
- 6dec7c2: test(utils): reuse the snapshot serializer of vitest config
|
12
|
+
|
13
|
+
test(utils): 复用 vitest 的 snapshot serializer
|
14
|
+
|
15
|
+
- c3216b5: chore: split the scheme into the plugin
|
16
|
+
|
17
|
+
chore: 拆分 scheme 到插件内部
|
18
|
+
|
19
|
+
- Updated dependencies [7e6fb5f]
|
20
|
+
- Updated dependencies [a7a7ad7]
|
21
|
+
- Updated dependencies [6dec7c2]
|
22
|
+
- Updated dependencies [c3216b5]
|
23
|
+
- @modern-js/runtime@2.23.0
|
24
|
+
- @modern-js/babel-compiler@2.23.0
|
25
|
+
- @modern-js/prod-server@2.23.0
|
26
|
+
- @modern-js/plugin@2.23.0
|
27
|
+
- @modern-js/utils@2.23.0
|
28
|
+
|
3
29
|
## 2.22.1
|
4
30
|
|
5
31
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
@@ -50,7 +50,25 @@ const _default = () => {
|
|
50
50
|
});
|
51
51
|
},
|
52
52
|
validateSchema() {
|
53
|
-
return
|
53
|
+
return [
|
54
|
+
{
|
55
|
+
target: "testing",
|
56
|
+
schema: {
|
57
|
+
typeof: [
|
58
|
+
"object"
|
59
|
+
]
|
60
|
+
}
|
61
|
+
},
|
62
|
+
{
|
63
|
+
target: "tools.jest",
|
64
|
+
schema: {
|
65
|
+
typeof: [
|
66
|
+
"object",
|
67
|
+
"function"
|
68
|
+
]
|
69
|
+
}
|
70
|
+
}
|
71
|
+
];
|
54
72
|
},
|
55
73
|
config() {
|
56
74
|
const appContext = api.useAppContext();
|
package/dist/esm/cli/index.js
CHANGED
@@ -2,7 +2,7 @@ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
2
|
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
3
3
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
4
4
|
import path from "path";
|
5
|
-
import { isApiOnly, mergeAlias,
|
5
|
+
import { isApiOnly, mergeAlias, createRuntimeExportsUtils } from "@modern-js/utils";
|
6
6
|
import { testingHooks, getModuleNameMapper, DEFAULT_RESOLVER_PATH } from "../base";
|
7
7
|
import { MODERNJS_CONFIG_KEY } from "../constant";
|
8
8
|
import testingBffPlugin from "./bff";
|
@@ -47,7 +47,25 @@ export default function() {
|
|
47
47
|
}));
|
48
48
|
},
|
49
49
|
validateSchema: function validateSchema() {
|
50
|
-
return
|
50
|
+
return [
|
51
|
+
{
|
52
|
+
target: "testing",
|
53
|
+
schema: {
|
54
|
+
typeof: [
|
55
|
+
"object"
|
56
|
+
]
|
57
|
+
}
|
58
|
+
},
|
59
|
+
{
|
60
|
+
target: "tools.jest",
|
61
|
+
schema: {
|
62
|
+
typeof: [
|
63
|
+
"object",
|
64
|
+
"function"
|
65
|
+
]
|
66
|
+
}
|
67
|
+
}
|
68
|
+
];
|
51
69
|
},
|
52
70
|
config: function config() {
|
53
71
|
var appContext = api.useAppContext();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import path from "path";
|
2
|
-
import { isApiOnly, mergeAlias,
|
2
|
+
import { isApiOnly, mergeAlias, createRuntimeExportsUtils } from "@modern-js/utils";
|
3
3
|
import { testingHooks, getModuleNameMapper, DEFAULT_RESOLVER_PATH } from "../base";
|
4
4
|
import { MODERNJS_CONFIG_KEY } from "../constant";
|
5
5
|
import testingBffPlugin from "./bff";
|
@@ -30,7 +30,25 @@ export default () => {
|
|
30
30
|
});
|
31
31
|
},
|
32
32
|
validateSchema() {
|
33
|
-
return
|
33
|
+
return [
|
34
|
+
{
|
35
|
+
target: "testing",
|
36
|
+
schema: {
|
37
|
+
typeof: [
|
38
|
+
"object"
|
39
|
+
]
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
target: "tools.jest",
|
44
|
+
schema: {
|
45
|
+
typeof: [
|
46
|
+
"object",
|
47
|
+
"function"
|
48
|
+
]
|
49
|
+
}
|
50
|
+
}
|
51
|
+
];
|
34
52
|
},
|
35
53
|
config() {
|
36
54
|
const appContext = api.useAppContext();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.23.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",
|
@@ -129,15 +129,15 @@
|
|
129
129
|
"ts-jest": "^29.1.0",
|
130
130
|
"yargs": "^17.0.1",
|
131
131
|
"@swc/helpers": "0.5.1",
|
132
|
-
"@modern-js/babel-compiler": "2.
|
133
|
-
"@modern-js/utils": "2.
|
134
|
-
"@modern-js/plugin": "2.
|
135
|
-
"@modern-js/prod-server": "2.
|
132
|
+
"@modern-js/babel-compiler": "2.23.0",
|
133
|
+
"@modern-js/utils": "2.23.0",
|
134
|
+
"@modern-js/plugin": "2.23.0",
|
135
|
+
"@modern-js/prod-server": "2.23.0"
|
136
136
|
},
|
137
137
|
"peerDependencies": {
|
138
138
|
"react": ">=17",
|
139
139
|
"react-dom": ">=17",
|
140
|
-
"@modern-js/runtime": "^2.
|
140
|
+
"@modern-js/runtime": "^2.23.0"
|
141
141
|
},
|
142
142
|
"peerDependenciesMeta": {
|
143
143
|
"@modern-js/runtime": {
|
@@ -152,18 +152,19 @@
|
|
152
152
|
"@types/node": "^14",
|
153
153
|
"@types/yargs": "^17.0.2",
|
154
154
|
"typescript": "^5",
|
155
|
-
"@modern-js/core": "2.
|
156
|
-
"@modern-js/types": "2.
|
157
|
-
"@modern-js/runtime": "2.
|
158
|
-
"@modern-js/bff-core": "2.
|
159
|
-
"@scripts/build": "2.
|
160
|
-
"@scripts/jest-config": "2.
|
155
|
+
"@modern-js/core": "2.23.0",
|
156
|
+
"@modern-js/types": "2.23.0",
|
157
|
+
"@modern-js/runtime": "2.23.0",
|
158
|
+
"@modern-js/bff-core": "2.23.0",
|
159
|
+
"@scripts/build": "2.23.0",
|
160
|
+
"@scripts/jest-config": "2.23.0"
|
161
161
|
},
|
162
162
|
"sideEffects": false,
|
163
163
|
"modernConfig": {},
|
164
164
|
"publishConfig": {
|
165
165
|
"registry": "https://registry.npmjs.org/",
|
166
|
-
"access": "public"
|
166
|
+
"access": "public",
|
167
|
+
"provenance": true
|
167
168
|
},
|
168
169
|
"scripts": {
|
169
170
|
"new": "modern-lib new",
|