@modern-js/plugin-testing 0.0.0-next-1692101922405 → 0.0.0-next-1692109129138

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,17 +1,21 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 0.0.0-next-1692101922405
3
+ ## 0.0.0-next-1692109129138
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [6b17028bb6]
8
- - Updated dependencies [18823664ee]
9
- - @modern-js/prod-server@0.0.0-next-1692101922405
10
- - @modern-js/utils@0.0.0-next-1692101922405
11
- - @modern-js/runtime@0.0.0-next-1692101922405
12
- - @modern-js/babel-preset-app@0.0.0-next-1692101922405
13
- - @modern-js/babel-compiler@0.0.0-next-1692101922405
14
- - @modern-js/plugin@0.0.0-next-1692101922405
7
+ - 4c03d9ab1: fix(core): remove testing config type and schema
8
+
9
+ fix(core): 移除 testing 配置类型和 schema
10
+
11
+ - Updated dependencies [18823664e]
12
+ - @modern-js/utils@0.0.0-next-1692109129138
13
+ - @modern-js/runtime@0.0.0-next-1692109129138
14
+ - @modern-js/babel-preset-app@0.0.0-next-1692109129138
15
+ - @modern-js/prod-server@0.0.0-next-1692109129138
16
+ - @modern-js/babel-compiler@0.0.0-next-1692109129138
17
+ - @modern-js/plugin@0.0.0-next-1692109129138
18
+ - @modern-js/types@0.0.0-next-1692109129138
15
19
 
16
20
  ## 2.30.0
17
21
 
@@ -76,9 +76,23 @@ const testingPlugin = () => {
76
76
  {
77
77
  target: "testing",
78
78
  schema: {
79
- typeof: [
80
- "object"
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
  {
@@ -67,9 +67,23 @@ export var testingPlugin = function() {
67
67
  {
68
68
  target: "testing",
69
69
  schema: {
70
- typeof: [
71
- "object"
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
- typeof: [
54
- "object"
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/core';
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.InitialOptions>;
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,4 +1,4 @@
1
- import { JestConfig, TestConfig } from '../types';
1
+ import type { JestConfig, TestConfig } from '@modern-js/types';
2
2
  declare class TestConfigOperator {
3
3
  private _testConfig;
4
4
  private _jestConfig;
@@ -1 +1 @@
1
- export type { JestConfig, TestConfig } from '@modern-js/core';
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": "0.0.0-next-1692101922405",
18
+ "version": "0.0.0-next-1692109129138",
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": "0.0.0-next-1692101922405",
133
- "@modern-js/babel-compiler": "0.0.0-next-1692101922405",
134
- "@modern-js/utils": "0.0.0-next-1692101922405",
135
- "@modern-js/plugin": "0.0.0-next-1692101922405",
136
- "@modern-js/prod-server": "0.0.0-next-1692101922405"
132
+ "@modern-js/babel-preset-app": "0.0.0-next-1692109129138",
133
+ "@modern-js/plugin": "0.0.0-next-1692109129138",
134
+ "@modern-js/babel-compiler": "0.0.0-next-1692109129138",
135
+ "@modern-js/prod-server": "0.0.0-next-1692109129138",
136
+ "@modern-js/types": "0.0.0-next-1692109129138",
137
+ "@modern-js/utils": "0.0.0-next-1692109129138"
137
138
  },
138
139
  "peerDependencies": {
139
140
  "react": ">=17",
140
141
  "react-dom": ">=17",
141
- "@modern-js/runtime": "0.0.0-next-1692101922405"
142
+ "@modern-js/runtime": "0.0.0-next-1692109129138"
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/core": "0.0.0-next-1692101922405",
157
- "@modern-js/types": "0.0.0-next-1692101922405",
158
- "@modern-js/runtime": "0.0.0-next-1692101922405",
159
- "@modern-js/bff-core": "0.0.0-next-1692101922405",
160
- "@scripts/build": "0.0.0-next-1692101922405",
161
- "@scripts/jest-config": "0.0.0-next-1692101922405"
157
+ "@modern-js/core": "0.0.0-next-1692109129138",
158
+ "@modern-js/bff-core": "0.0.0-next-1692109129138",
159
+ "@scripts/build": "0.0.0-next-1692109129138",
160
+ "@scripts/jest-config": "0.0.0-next-1692109129138",
161
+ "@modern-js/runtime": "0.0.0-next-1692109129138"
162
162
  },
163
163
  "sideEffects": false,
164
164
  "publishConfig": {