@modern-js/plugin-testing 2.29.0 → 2.31.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 +43 -0
- package/dist/cjs/cli/index.js +17 -3
- package/dist/esm/cli/index.js +17 -3
- package/dist/esm-node/cli/index.js +17 -3
- package/dist/types/base/config/index.d.ts +3 -2
- package/dist/types/base/config/testConfigOperator.d.ts +1 -1
- package/dist/types/base/types/index.d.ts +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,48 @@
|
|
1
1
|
# @modern-js/plugin-testing
|
2
2
|
|
3
|
+
## 2.31.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 4c03d9a: fix(core): remove testing config type and schema
|
8
|
+
|
9
|
+
fix(core): 移除 testing 配置类型和 schema
|
10
|
+
|
11
|
+
- Updated dependencies [56eaa0b]
|
12
|
+
- Updated dependencies [4a87c07]
|
13
|
+
- Updated dependencies [2361ce8]
|
14
|
+
- Updated dependencies [d9cc4d8]
|
15
|
+
- Updated dependencies [1882366]
|
16
|
+
- Updated dependencies [cd39c6f]
|
17
|
+
- @modern-js/prod-server@2.31.0
|
18
|
+
- @modern-js/runtime@2.31.0
|
19
|
+
- @modern-js/utils@2.31.0
|
20
|
+
- @modern-js/babel-preset-app@2.31.0
|
21
|
+
- @modern-js/babel-compiler@2.31.0
|
22
|
+
- @modern-js/plugin@2.31.0
|
23
|
+
- @modern-js/types@2.31.0
|
24
|
+
|
25
|
+
## 2.30.0
|
26
|
+
|
27
|
+
### Patch Changes
|
28
|
+
|
29
|
+
- Updated dependencies [9f21f28]
|
30
|
+
- Updated dependencies [a8a4fd3]
|
31
|
+
- Updated dependencies [a5ee81a]
|
32
|
+
- Updated dependencies [276ace3]
|
33
|
+
- Updated dependencies [855a61e]
|
34
|
+
- Updated dependencies [883692c]
|
35
|
+
- Updated dependencies [cc5f49e]
|
36
|
+
- Updated dependencies [c731bf3]
|
37
|
+
- Updated dependencies [8219d55]
|
38
|
+
- Updated dependencies [b6ab299]
|
39
|
+
- @modern-js/prod-server@2.30.0
|
40
|
+
- @modern-js/runtime@2.30.0
|
41
|
+
- @modern-js/babel-preset-app@2.30.0
|
42
|
+
- @modern-js/utils@2.30.0
|
43
|
+
- @modern-js/babel-compiler@2.30.0
|
44
|
+
- @modern-js/plugin@2.30.0
|
45
|
+
|
3
46
|
## 2.29.0
|
4
47
|
|
5
48
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
@@ -76,9 +76,23 @@ const testingPlugin = () => {
|
|
76
76
|
{
|
77
77
|
target: "testing",
|
78
78
|
schema: {
|
79
|
-
|
80
|
-
|
81
|
-
|
79
|
+
type: "object",
|
80
|
+
additionalProperties: false,
|
81
|
+
properties: {
|
82
|
+
transformer: {
|
83
|
+
type: "string",
|
84
|
+
enum: [
|
85
|
+
"babel-jest",
|
86
|
+
"ts-jest"
|
87
|
+
]
|
88
|
+
},
|
89
|
+
jest: {
|
90
|
+
typeof: [
|
91
|
+
"object",
|
92
|
+
"function"
|
93
|
+
]
|
94
|
+
}
|
95
|
+
}
|
82
96
|
}
|
83
97
|
},
|
84
98
|
{
|
package/dist/esm/cli/index.js
CHANGED
@@ -67,9 +67,23 @@ export var testingPlugin = function() {
|
|
67
67
|
{
|
68
68
|
target: "testing",
|
69
69
|
schema: {
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
+
}
|
73
87
|
}
|
74
88
|
},
|
75
89
|
{
|
@@ -50,9 +50,23 @@ export const testingPlugin = () => {
|
|
50
50
|
{
|
51
51
|
target: "testing",
|
52
52
|
schema: {
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
+
}
|
56
70
|
}
|
57
71
|
},
|
58
72
|
{
|
@@ -1,17 +1,18 @@
|
|
1
1
|
import { AliasOption } from '@modern-js/utils';
|
2
|
-
import { JestConfig } from '@modern-js/
|
2
|
+
import { JestConfig } from '@modern-js/types';
|
3
3
|
import { TestConfig } from '../types';
|
4
4
|
import { TestConfigOperator } from './testConfigOperator';
|
5
5
|
/**
|
6
6
|
* Parse jest config
|
7
7
|
*/
|
8
8
|
declare const getJestUtils: (testConfig: TestConfig) => TestConfigOperator;
|
9
|
-
declare const patchConfig: (testOperator: TestConfigOperator) => Promise<JestConfigTypes.
|
9
|
+
declare const patchConfig: (testOperator: TestConfigOperator) => Promise<JestConfigTypes.Config>;
|
10
10
|
export declare const DEFAULT_RESOLVER_PATH: string;
|
11
11
|
export type UserConfig = {
|
12
12
|
source?: {
|
13
13
|
alias?: AliasOption;
|
14
14
|
};
|
15
|
+
testing?: TestConfig;
|
15
16
|
tools?: {
|
16
17
|
jest: JestConfig | ((config: JestConfig) => JestConfig);
|
17
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
export type { JestConfig, TestConfig } from '@modern-js/
|
1
|
+
export type { JestConfig, TestConfig } from '@modern-js/types';
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.31.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,17 @@
|
|
129
129
|
"ts-jest": "^29.1.0",
|
130
130
|
"yargs": "^17.0.1",
|
131
131
|
"@swc/helpers": "0.5.1",
|
132
|
-
"@modern-js/babel-preset-app": "2.
|
133
|
-
"@modern-js/babel-compiler": "2.
|
134
|
-
"@modern-js/utils": "2.
|
135
|
-
"@modern-js/plugin": "2.
|
136
|
-
"@modern-js/prod-server": "2.
|
132
|
+
"@modern-js/babel-preset-app": "2.31.0",
|
133
|
+
"@modern-js/babel-compiler": "2.31.0",
|
134
|
+
"@modern-js/utils": "2.31.0",
|
135
|
+
"@modern-js/plugin": "2.31.0",
|
136
|
+
"@modern-js/prod-server": "2.31.0",
|
137
|
+
"@modern-js/types": "2.31.0"
|
137
138
|
},
|
138
139
|
"peerDependencies": {
|
139
140
|
"react": ">=17",
|
140
141
|
"react-dom": ">=17",
|
141
|
-
"@modern-js/runtime": "^2.
|
142
|
+
"@modern-js/runtime": "^2.31.0"
|
142
143
|
},
|
143
144
|
"peerDependenciesMeta": {
|
144
145
|
"@modern-js/runtime": {
|
@@ -153,12 +154,11 @@
|
|
153
154
|
"@types/node": "^14",
|
154
155
|
"@types/yargs": "^17.0.2",
|
155
156
|
"typescript": "^5",
|
156
|
-
"@modern-js/
|
157
|
-
"@modern-js/
|
158
|
-
"@modern-js/
|
159
|
-
"@
|
160
|
-
"@scripts/
|
161
|
-
"@scripts/jest-config": "2.29.0"
|
157
|
+
"@modern-js/runtime": "2.31.0",
|
158
|
+
"@modern-js/core": "2.31.0",
|
159
|
+
"@modern-js/bff-core": "2.31.0",
|
160
|
+
"@scripts/build": "2.31.0",
|
161
|
+
"@scripts/jest-config": "2.31.0"
|
162
162
|
},
|
163
163
|
"sideEffects": false,
|
164
164
|
"publishConfig": {
|