@modern-js/plugin-testing 2.22.0 → 2.23.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/CHANGELOG.md +40 -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 -14
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,45 @@
|
|
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
|
+
|
29
|
+
## 2.22.1
|
30
|
+
|
31
|
+
### Patch Changes
|
32
|
+
|
33
|
+
- Updated dependencies [e2848a2]
|
34
|
+
- Updated dependencies [9b69987]
|
35
|
+
- Updated dependencies [d4045ed]
|
36
|
+
- Updated dependencies [1f02cd2]
|
37
|
+
- @modern-js/runtime@2.22.1
|
38
|
+
- @modern-js/utils@2.22.1
|
39
|
+
- @modern-js/prod-server@2.22.1
|
40
|
+
- @modern-js/babel-compiler@2.22.1
|
41
|
+
- @modern-js/plugin@2.22.1
|
42
|
+
|
3
43
|
## 2.22.0
|
4
44
|
|
5
45
|
### 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,16 +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/
|
135
|
-
"@modern-js/
|
136
|
-
"@modern-js/prod-server": "2.22.0"
|
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"
|
137
136
|
},
|
138
137
|
"peerDependencies": {
|
139
138
|
"react": ">=17",
|
140
139
|
"react-dom": ">=17",
|
141
|
-
"@modern-js/runtime": "^2.
|
140
|
+
"@modern-js/runtime": "^2.23.0"
|
142
141
|
},
|
143
142
|
"peerDependenciesMeta": {
|
144
143
|
"@modern-js/runtime": {
|
@@ -153,18 +152,19 @@
|
|
153
152
|
"@types/node": "^14",
|
154
153
|
"@types/yargs": "^17.0.2",
|
155
154
|
"typescript": "^5",
|
156
|
-
"@modern-js/core": "2.
|
157
|
-
"@modern-js/types": "2.
|
158
|
-
"@modern-js/runtime": "2.
|
159
|
-
"@modern-js/bff-core": "2.
|
160
|
-
"@scripts/build": "2.
|
161
|
-
"@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"
|
162
161
|
},
|
163
162
|
"sideEffects": false,
|
164
163
|
"modernConfig": {},
|
165
164
|
"publishConfig": {
|
166
165
|
"registry": "https://registry.npmjs.org/",
|
167
|
-
"access": "public"
|
166
|
+
"access": "public",
|
167
|
+
"provenance": true
|
168
168
|
},
|
169
169
|
"scripts": {
|
170
170
|
"new": "modern-lib new",
|