@modern-js/plugin-testing 0.0.0-next-1686651393235 → 0.0.0-next-1686654963103

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 CHANGED
@@ -1,30 +1,25 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 0.0.0-next-1686651393235
3
+ ## 0.0.0-next-1686654963103
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 7e6fb5fc16: chore: publishConfig add provenance config
7
+ - 7e6fb5fc1: chore: publishConfig add provenance config
8
8
 
9
9
  chore: publishConfig 增加 provenance 配置
10
10
 
11
- - 6dec7c2a1e: test(utils): reuse the snapshot serializer of vitest config
11
+ - 6dec7c2a1: test(utils): reuse the snapshot serializer of vitest config
12
12
 
13
13
  test(utils): 复用 vitest 的 snapshot serializer
14
14
 
15
- - e909611d21: chore: split the scheme into the plugin
16
-
17
- chore: 拆分 scheme 到插件内部
18
-
19
- - Updated dependencies [7e6fb5fc16]
20
- - Updated dependencies [a7a7ad7797]
21
- - Updated dependencies [6dec7c2a1e]
22
- - Updated dependencies [e909611d21]
23
- - @modern-js/runtime@0.0.0-next-1686651393235
24
- - @modern-js/babel-compiler@0.0.0-next-1686651393235
25
- - @modern-js/prod-server@0.0.0-next-1686651393235
26
- - @modern-js/plugin@0.0.0-next-1686651393235
27
- - @modern-js/utils@0.0.0-next-1686651393235
15
+ - Updated dependencies [7e6fb5fc1]
16
+ - Updated dependencies [a7a7ad779]
17
+ - Updated dependencies [6dec7c2a1]
18
+ - @modern-js/runtime@0.0.0-next-1686654963103
19
+ - @modern-js/babel-compiler@0.0.0-next-1686654963103
20
+ - @modern-js/prod-server@0.0.0-next-1686654963103
21
+ - @modern-js/plugin@0.0.0-next-1686654963103
22
+ - @modern-js/utils@0.0.0-next-1686654963103
28
23
 
29
24
  ## 2.22.1
30
25
 
@@ -50,25 +50,7 @@ const _default = () => {
50
50
  });
51
51
  },
52
52
  validateSchema() {
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
- ];
53
+ return _utils.PLUGIN_SCHEMAS["@modern-js/plugin-testing"];
72
54
  },
73
55
  config() {
74
56
  const appContext = api.useAppContext();
@@ -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, createRuntimeExportsUtils } from "@modern-js/utils";
5
+ import { isApiOnly, mergeAlias, PLUGIN_SCHEMAS, 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,25 +47,7 @@ export default function() {
47
47
  }));
48
48
  },
49
49
  validateSchema: function validateSchema() {
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
- ];
50
+ return PLUGIN_SCHEMAS["@modern-js/plugin-testing"];
69
51
  },
70
52
  config: function config() {
71
53
  var appContext = api.useAppContext();
@@ -1,5 +1,5 @@
1
1
  import path from "path";
2
- import { isApiOnly, mergeAlias, createRuntimeExportsUtils } from "@modern-js/utils";
2
+ import { isApiOnly, mergeAlias, PLUGIN_SCHEMAS, 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,25 +30,7 @@ export default () => {
30
30
  });
31
31
  },
32
32
  validateSchema() {
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
- ];
33
+ return PLUGIN_SCHEMAS["@modern-js/plugin-testing"];
52
34
  },
53
35
  config() {
54
36
  const appContext = api.useAppContext();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1686651393235",
18
+ "version": "0.0.0-next-1686654963103",
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,15 +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": "0.0.0-next-1686651393235",
133
- "@modern-js/utils": "0.0.0-next-1686651393235",
134
- "@modern-js/plugin": "0.0.0-next-1686651393235",
135
- "@modern-js/prod-server": "0.0.0-next-1686651393235"
132
+ "@modern-js/babel-compiler": "0.0.0-next-1686654963103",
133
+ "@modern-js/utils": "0.0.0-next-1686654963103",
134
+ "@modern-js/prod-server": "0.0.0-next-1686654963103",
135
+ "@modern-js/plugin": "0.0.0-next-1686654963103"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "react": ">=17",
139
139
  "react-dom": ">=17",
140
- "@modern-js/runtime": "0.0.0-next-1686651393235"
140
+ "@modern-js/runtime": "0.0.0-next-1686654963103"
141
141
  },
142
142
  "peerDependenciesMeta": {
143
143
  "@modern-js/runtime": {
@@ -152,12 +152,12 @@
152
152
  "@types/node": "^14",
153
153
  "@types/yargs": "^17.0.2",
154
154
  "typescript": "^5",
155
- "@modern-js/core": "0.0.0-next-1686651393235",
156
- "@modern-js/types": "0.0.0-next-1686651393235",
157
- "@modern-js/runtime": "0.0.0-next-1686651393235",
158
- "@modern-js/bff-core": "0.0.0-next-1686651393235",
159
- "@scripts/build": "0.0.0-next-1686651393235",
160
- "@scripts/jest-config": "0.0.0-next-1686651393235"
155
+ "@modern-js/core": "0.0.0-next-1686654963103",
156
+ "@modern-js/types": "0.0.0-next-1686654963103",
157
+ "@modern-js/runtime": "0.0.0-next-1686654963103",
158
+ "@modern-js/bff-core": "0.0.0-next-1686654963103",
159
+ "@scripts/build": "0.0.0-next-1686654963103",
160
+ "@scripts/jest-config": "0.0.0-next-1686654963103"
161
161
  },
162
162
  "sideEffects": false,
163
163
  "modernConfig": {},