@modern-js/plugin-testing 2.0.1 → 2.1.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 +28 -0
- package/dist/js/modern/cli/index.js +4 -4
- package/dist/js/node/cli/index.js +3 -3
- package/dist/js/treeshaking/cli/index.js +4 -4
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# @modern-js/plugin-testing
|
2
2
|
|
3
|
+
## 2.1.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [f3237db]
|
8
|
+
- Updated dependencies [837620c]
|
9
|
+
- Updated dependencies [776cc27]
|
10
|
+
- Updated dependencies [35d3e84]
|
11
|
+
- Updated dependencies [8a9482c]
|
12
|
+
- @modern-js/runtime@2.1.0
|
13
|
+
- @modern-js/babel-preset-app@2.1.0
|
14
|
+
- @modern-js/utils@2.1.0
|
15
|
+
- @modern-js/prod-server@2.1.0
|
16
|
+
- @modern-js/babel-compiler@2.1.0
|
17
|
+
- @modern-js/plugin@2.1.0
|
18
|
+
|
19
|
+
## 2.0.2
|
20
|
+
|
21
|
+
### Patch Changes
|
22
|
+
|
23
|
+
- Updated dependencies [39988b2]
|
24
|
+
- @modern-js/runtime@2.0.2
|
25
|
+
- @modern-js/prod-server@2.0.2
|
26
|
+
- @modern-js/utils@2.0.2
|
27
|
+
- @modern-js/babel-preset-app@2.0.2
|
28
|
+
- @modern-js/babel-compiler@2.0.2
|
29
|
+
- @modern-js/plugin@2.0.2
|
30
|
+
|
3
31
|
## 2.0.1
|
4
32
|
|
5
33
|
### Patch Changes
|
@@ -31,7 +31,7 @@ import {
|
|
31
31
|
DEFAULT_RESOLVER_PATH
|
32
32
|
} from "../base";
|
33
33
|
import { MODERNJS_CONFIG_KEY } from "../constant";
|
34
|
-
import
|
34
|
+
import testingBffPlugin from "./bff";
|
35
35
|
import test from "./test";
|
36
36
|
const mergeUserJestConfig = (testUtils) => {
|
37
37
|
const resolveJestConfig = testUtils.testConfig.jest;
|
@@ -40,11 +40,11 @@ const mergeUserJestConfig = (testUtils) => {
|
|
40
40
|
}
|
41
41
|
};
|
42
42
|
var cli_default = () => {
|
43
|
-
const
|
43
|
+
const bffPlugin = testingBffPlugin();
|
44
44
|
return {
|
45
45
|
name: "@modern-js/plugin-testing",
|
46
|
-
usePlugins: [
|
47
|
-
post: [
|
46
|
+
usePlugins: [bffPlugin],
|
47
|
+
post: [bffPlugin.name],
|
48
48
|
registerHook: testingHooks,
|
49
49
|
setup: (api) => {
|
50
50
|
let testingExportsUtils;
|
@@ -60,11 +60,11 @@ const mergeUserJestConfig = (testUtils) => {
|
|
60
60
|
}
|
61
61
|
};
|
62
62
|
var cli_default = () => {
|
63
|
-
const
|
63
|
+
const bffPlugin = (0, import_bff.default)();
|
64
64
|
return {
|
65
65
|
name: "@modern-js/plugin-testing",
|
66
|
-
usePlugins: [
|
67
|
-
post: [
|
66
|
+
usePlugins: [bffPlugin],
|
67
|
+
post: [bffPlugin.name],
|
68
68
|
registerHook: import_base.testingHooks,
|
69
69
|
setup: (api) => {
|
70
70
|
let testingExportsUtils;
|
@@ -139,7 +139,7 @@ import path from "path";
|
|
139
139
|
import { isApiOnly, mergeAlias, PLUGIN_SCHEMAS, createRuntimeExportsUtils } from "@modern-js/utils";
|
140
140
|
import { testingHooks, getModuleNameMapper, DEFAULT_RESOLVER_PATH } from "../base";
|
141
141
|
import { MODERNJS_CONFIG_KEY } from "../constant";
|
142
|
-
import
|
142
|
+
import testingBffPlugin from "./bff";
|
143
143
|
import test from "./test";
|
144
144
|
var mergeUserJestConfig = function(testUtils) {
|
145
145
|
var resolveJestConfig = testUtils.testConfig.jest;
|
@@ -148,14 +148,14 @@ var mergeUserJestConfig = function(testUtils) {
|
|
148
148
|
}
|
149
149
|
};
|
150
150
|
var cli_default = function() {
|
151
|
-
var
|
151
|
+
var bffPlugin = testingBffPlugin();
|
152
152
|
return {
|
153
153
|
name: "@modern-js/plugin-testing",
|
154
154
|
usePlugins: [
|
155
|
-
|
155
|
+
bffPlugin
|
156
156
|
],
|
157
157
|
post: [
|
158
|
-
|
158
|
+
bffPlugin.name
|
159
159
|
],
|
160
160
|
registerHook: testingHooks,
|
161
161
|
setup: function(api) {
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.0
|
14
|
+
"version": "2.1.0",
|
15
15
|
"jsnext:source": "./src/cli/index.ts",
|
16
16
|
"types": "./dist/types/cli/index.d.ts",
|
17
17
|
"main": "./dist/js/node/cli/index.js",
|
@@ -107,16 +107,16 @@
|
|
107
107
|
"jest": "^27.0.6",
|
108
108
|
"ts-jest": "^27.0.4",
|
109
109
|
"yargs": "^17.0.1",
|
110
|
-
"@modern-js/babel-compiler": "2.0
|
111
|
-
"@modern-js/
|
112
|
-
"@modern-js/
|
113
|
-
"@modern-js/
|
114
|
-
"@modern-js/
|
110
|
+
"@modern-js/babel-compiler": "2.1.0",
|
111
|
+
"@modern-js/utils": "2.1.0",
|
112
|
+
"@modern-js/babel-preset-app": "2.1.0",
|
113
|
+
"@modern-js/plugin": "2.1.0",
|
114
|
+
"@modern-js/prod-server": "2.1.0"
|
115
115
|
},
|
116
116
|
"peerDependencies": {
|
117
117
|
"react": ">=17",
|
118
118
|
"react-dom": ">=17",
|
119
|
-
"@modern-js/runtime": "^2.0
|
119
|
+
"@modern-js/runtime": "^2.1.0"
|
120
120
|
},
|
121
121
|
"peerDependenciesMeta": {
|
122
122
|
"@modern-js/runtime": {
|
@@ -133,12 +133,12 @@
|
|
133
133
|
"@jest/types": "^27.0.6",
|
134
134
|
"jest": "^27",
|
135
135
|
"typescript": "^4",
|
136
|
-
"@modern-js/core": "2.0
|
137
|
-
"@modern-js/types": "2.0
|
138
|
-
"@modern-js/runtime": "2.0
|
139
|
-
"@modern-js/bff-core": "2.0
|
140
|
-
"@scripts/build": "2.0
|
141
|
-
"@scripts/jest-config": "2.0
|
136
|
+
"@modern-js/core": "2.1.0",
|
137
|
+
"@modern-js/types": "2.1.0",
|
138
|
+
"@modern-js/runtime": "2.1.0",
|
139
|
+
"@modern-js/bff-core": "2.1.0",
|
140
|
+
"@scripts/build": "2.1.0",
|
141
|
+
"@scripts/jest-config": "2.1.0"
|
142
142
|
},
|
143
143
|
"sideEffects": false,
|
144
144
|
"modernConfig": {},
|