@modern-js/plugin-testing 2.39.1 → 2.40.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/dist/types/cli/bff/app.d.ts +0 -1
- package/package.json +13 -13
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");
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node/http" />
|
3
3
|
/// <reference types="@modern-js/prod-server/src/type" />
|
4
|
-
/// <reference types=".pnpm/@modern-js+prod-server@2.39.0_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/prod-server/dist/types/type" />
|
5
4
|
import { InternalPlugins } from '@modern-js/types';
|
6
5
|
export declare const isInHandler: () => boolean;
|
7
6
|
declare const createApp: (pwd: string, config: any, plugins: InternalPlugins, routes: any[]) => Promise<(req: import("http").IncomingMessage, res: import("http").ServerResponse, next?: (() => void) | undefined) => void>;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.40.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",
|
@@ -116,7 +116,7 @@
|
|
116
116
|
"@modern-js-reduck/plugin-effects": "^1.1.10",
|
117
117
|
"@modern-js-reduck/plugin-immutable": "^1.1.10",
|
118
118
|
"@modern-js-reduck/store": "^1.1.10",
|
119
|
-
"@rsbuild/babel-preset": "0.0.
|
119
|
+
"@rsbuild/babel-preset": "0.0.7",
|
120
120
|
"@testing-library/jest-dom": "^5.14.1",
|
121
121
|
"@testing-library/react": "^13.4.0",
|
122
122
|
"@types/testing-library__jest-dom": "^5.14.3",
|
@@ -131,16 +131,16 @@
|
|
131
131
|
"ts-jest": "^29.1.0",
|
132
132
|
"yargs": "^17.0.1",
|
133
133
|
"@swc/helpers": "0.5.1",
|
134
|
-
"@modern-js/babel-compiler": "2.
|
135
|
-
"@modern-js/utils": "2.
|
136
|
-
"@modern-js/plugin": "2.
|
137
|
-
"@modern-js/prod-server": "2.
|
138
|
-
"@modern-js/types": "2.
|
134
|
+
"@modern-js/babel-compiler": "2.40.0",
|
135
|
+
"@modern-js/utils": "2.40.0",
|
136
|
+
"@modern-js/plugin": "2.40.0",
|
137
|
+
"@modern-js/prod-server": "2.40.0",
|
138
|
+
"@modern-js/types": "2.40.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.40.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
|
-
"@modern-js/bff-core": "2.
|
161
|
-
"@scripts/build": "2.
|
162
|
-
"@scripts/jest-config": "2.
|
158
|
+
"@modern-js/core": "2.40.0",
|
159
|
+
"@modern-js/runtime": "2.40.0",
|
160
|
+
"@modern-js/bff-core": "2.40.0",
|
161
|
+
"@scripts/build": "2.40.0",
|
162
|
+
"@scripts/jest-config": "2.40.0"
|
163
163
|
},
|
164
164
|
"sideEffects": false,
|
165
165
|
"publishConfig": {
|