@modern-js/plugin-testing 0.0.0-next-1692122889385 → 0.0.0-next-1692155989420
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 +7 -13
- package/dist/cjs/cli/index.js +3 -17
- package/dist/esm/cli/index.js +3 -17
- package/dist/esm-node/cli/index.js +3 -17
- package/dist/types/base/config/index.d.ts +2 -3
- 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,21 +1,15 @@
|
|
|
1
1
|
# @modern-js/plugin-testing
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1692155989420
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
- @modern-js/runtime@0.0.0-next-1692122889385
|
|
14
|
-
- @modern-js/babel-preset-app@0.0.0-next-1692122889385
|
|
15
|
-
- @modern-js/prod-server@0.0.0-next-1692122889385
|
|
16
|
-
- @modern-js/babel-compiler@0.0.0-next-1692122889385
|
|
17
|
-
- @modern-js/plugin@0.0.0-next-1692122889385
|
|
18
|
-
- @modern-js/types@0.0.0-next-1692122889385
|
|
7
|
+
- @modern-js/babel-preset-app@0.0.0-next-1692155989420
|
|
8
|
+
- @modern-js/runtime@0.0.0-next-1692155989420
|
|
9
|
+
- @modern-js/prod-server@0.0.0-next-1692155989420
|
|
10
|
+
- @modern-js/babel-compiler@0.0.0-next-1692155989420
|
|
11
|
+
- @modern-js/plugin@0.0.0-next-1692155989420
|
|
12
|
+
- @modern-js/utils@0.0.0-next-1692155989420
|
|
19
13
|
|
|
20
14
|
## 2.30.0
|
|
21
15
|
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -76,23 +76,9 @@ const testingPlugin = () => {
|
|
|
76
76
|
{
|
|
77
77
|
target: "testing",
|
|
78
78
|
schema: {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
}
|
|
79
|
+
typeof: [
|
|
80
|
+
"object"
|
|
81
|
+
]
|
|
96
82
|
}
|
|
97
83
|
},
|
|
98
84
|
{
|
package/dist/esm/cli/index.js
CHANGED
|
@@ -67,23 +67,9 @@ export var testingPlugin = function() {
|
|
|
67
67
|
{
|
|
68
68
|
target: "testing",
|
|
69
69
|
schema: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
}
|
|
70
|
+
typeof: [
|
|
71
|
+
"object"
|
|
72
|
+
]
|
|
87
73
|
}
|
|
88
74
|
},
|
|
89
75
|
{
|
|
@@ -50,23 +50,9 @@ export const testingPlugin = () => {
|
|
|
50
50
|
{
|
|
51
51
|
target: "testing",
|
|
52
52
|
schema: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
}
|
|
53
|
+
typeof: [
|
|
54
|
+
"object"
|
|
55
|
+
]
|
|
70
56
|
}
|
|
71
57
|
},
|
|
72
58
|
{
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { AliasOption } from '@modern-js/utils';
|
|
2
|
-
import { JestConfig } from '@modern-js/
|
|
2
|
+
import { JestConfig } from '@modern-js/core';
|
|
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.InitialOptions>;
|
|
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;
|
|
16
15
|
tools?: {
|
|
17
16
|
jest: JestConfig | ((config: JestConfig) => JestConfig);
|
|
18
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { JestConfig, TestConfig } from '@modern-js/
|
|
1
|
+
export type { JestConfig, TestConfig } from '@modern-js/core';
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1692155989420",
|
|
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,17 +129,16 @@
|
|
|
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": "0.0.0-next-
|
|
133
|
-
"@modern-js/
|
|
134
|
-
"@modern-js/
|
|
135
|
-
"@modern-js/
|
|
136
|
-
"@modern-js/prod-server": "0.0.0-next-
|
|
137
|
-
"@modern-js/types": "0.0.0-next-1692122889385"
|
|
132
|
+
"@modern-js/babel-preset-app": "0.0.0-next-1692155989420",
|
|
133
|
+
"@modern-js/babel-compiler": "0.0.0-next-1692155989420",
|
|
134
|
+
"@modern-js/utils": "0.0.0-next-1692155989420",
|
|
135
|
+
"@modern-js/plugin": "0.0.0-next-1692155989420",
|
|
136
|
+
"@modern-js/prod-server": "0.0.0-next-1692155989420"
|
|
138
137
|
},
|
|
139
138
|
"peerDependencies": {
|
|
140
139
|
"react": ">=17",
|
|
141
140
|
"react-dom": ">=17",
|
|
142
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
141
|
+
"@modern-js/runtime": "0.0.0-next-1692155989420"
|
|
143
142
|
},
|
|
144
143
|
"peerDependenciesMeta": {
|
|
145
144
|
"@modern-js/runtime": {
|
|
@@ -154,11 +153,12 @@
|
|
|
154
153
|
"@types/node": "^14",
|
|
155
154
|
"@types/yargs": "^17.0.2",
|
|
156
155
|
"typescript": "^5",
|
|
157
|
-
"@modern-js/core": "0.0.0-next-
|
|
158
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
159
|
-
"@modern-js/
|
|
160
|
-
"@
|
|
161
|
-
"@scripts/
|
|
156
|
+
"@modern-js/core": "0.0.0-next-1692155989420",
|
|
157
|
+
"@modern-js/runtime": "0.0.0-next-1692155989420",
|
|
158
|
+
"@modern-js/types": "0.0.0-next-1692155989420",
|
|
159
|
+
"@modern-js/bff-core": "0.0.0-next-1692155989420",
|
|
160
|
+
"@scripts/build": "0.0.0-next-1692155989420",
|
|
161
|
+
"@scripts/jest-config": "0.0.0-next-1692155989420"
|
|
162
162
|
},
|
|
163
163
|
"sideEffects": false,
|
|
164
164
|
"publishConfig": {
|