@modern-js/plugin-testing 0.0.0-next-1692692387710 → 0.0.0-next-1692696356093

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,75 +1,15 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 0.0.0-next-1692692387710
3
+ ## 0.0.0-next-1692696356093
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 6076166600: fix: packaging errors found by publint
8
-
9
- fix: 修复 publint 检测到的 packaging 问题
10
-
11
- - Updated dependencies [e6c7d33c89]
12
- - Updated dependencies [6076166600]
13
- - Updated dependencies [a030aff285]
14
- - Updated dependencies [79658a03ec]
15
- - Updated dependencies [92591c6a0d]
16
- - Updated dependencies [4323e6880d]
17
- - Updated dependencies [2447d64a97]
18
- - @modern-js/prod-server@0.0.0-next-1692692387710
19
- - @modern-js/runtime@0.0.0-next-1692692387710
20
- - @modern-js/plugin@0.0.0-next-1692692387710
21
- - @modern-js/types@0.0.0-next-1692692387710
22
- - @modern-js/utils@0.0.0-next-1692692387710
23
- - @modern-js/babel-preset-app@0.0.0-next-1692692387710
24
- - @modern-js/babel-compiler@0.0.0-next-1692692387710
25
-
26
- ## 2.31.2
27
-
28
- ### Patch Changes
29
-
30
- - Updated dependencies [15d30abdc66]
31
- - @modern-js/utils@2.31.2
32
- - @modern-js/babel-preset-app@2.31.2
33
- - @modern-js/runtime@2.31.2
34
- - @modern-js/prod-server@2.31.2
35
- - @modern-js/babel-compiler@2.31.2
36
- - @modern-js/plugin@2.31.2
37
- - @modern-js/types@2.31.2
38
-
39
- ## 2.31.1
40
-
41
- ### Patch Changes
42
-
43
- - Updated dependencies [99ffd10]
44
- - @modern-js/runtime@2.31.1
45
- - @modern-js/babel-preset-app@2.31.1
46
- - @modern-js/prod-server@2.31.1
47
- - @modern-js/babel-compiler@2.31.1
48
- - @modern-js/plugin@2.31.1
49
- - @modern-js/types@2.31.1
50
- - @modern-js/utils@2.31.1
51
-
52
- ## 2.31.0
53
-
54
- ### Patch Changes
55
-
56
- - 4c03d9a: fix(core): remove testing config type and schema
57
-
58
- fix(core): 移除 testing 配置类型和 schema
59
-
60
- - Updated dependencies [56eaa0b]
61
- - Updated dependencies [4a87c07]
62
- - Updated dependencies [2361ce8]
63
- - Updated dependencies [d9cc4d8]
64
- - Updated dependencies [1882366]
65
- - Updated dependencies [cd39c6f]
66
- - @modern-js/prod-server@2.31.0
67
- - @modern-js/runtime@2.31.0
68
- - @modern-js/utils@2.31.0
69
- - @modern-js/babel-preset-app@2.31.0
70
- - @modern-js/babel-compiler@2.31.0
71
- - @modern-js/plugin@2.31.0
72
- - @modern-js/types@2.31.0
7
+ - @modern-js/babel-preset-app@0.0.0-next-1692696356093
8
+ - @modern-js/runtime@0.0.0-next-1692696356093
9
+ - @modern-js/prod-server@0.0.0-next-1692696356093
10
+ - @modern-js/babel-compiler@0.0.0-next-1692696356093
11
+ - @modern-js/plugin@0.0.0-next-1692696356093
12
+ - @modern-js/utils@0.0.0-next-1692696356093
73
13
 
74
14
  ## 2.30.0
75
15
 
@@ -76,23 +76,9 @@ const testingPlugin = () => {
76
76
  {
77
77
  target: "testing",
78
78
  schema: {
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
- }
79
+ typeof: [
80
+ "object"
81
+ ]
96
82
  }
97
83
  },
98
84
  {
@@ -67,23 +67,9 @@ export var testingPlugin = function() {
67
67
  {
68
68
  target: "testing",
69
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
- }
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
- 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
- }
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/types';
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.Config>;
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,4 +1,4 @@
1
- import type { JestConfig, TestConfig } from '@modern-js/types';
1
+ import { JestConfig, TestConfig } from '../types';
2
2
  declare class TestConfigOperator {
3
3
  private _testConfig;
4
4
  private _jestConfig;
@@ -1 +1 @@
1
- export type { JestConfig, TestConfig } from '@modern-js/types';
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-1692692387710",
18
+ "version": "0.0.0-next-1692696356093",
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",
@@ -30,50 +30,50 @@
30
30
  "default": "./types/index.d.ts"
31
31
  },
32
32
  ".": {
33
- "types": "./dist/types/cli/index.d.ts",
34
33
  "jsnext:source": "./src/cli/index.ts",
34
+ "types": "./dist/types/cli/index.d.ts",
35
35
  "default": "./dist/cjs/cli/index.js"
36
36
  },
37
37
  "./runtime": {
38
- "types": "./dist/types/runtime-testing/index.d.ts",
39
38
  "jsnext:source": "./src/runtime-testing/index.ts",
40
39
  "node": {
41
40
  "import": "./dist/esm-node/runtime-testing/index.js",
42
41
  "require": "./dist/cjs/runtime-testing/index.js"
43
42
  },
43
+ "types": "./dist/types/runtime-testing/index.d.ts",
44
44
  "default": "./dist/esm/runtime-testing/index.js"
45
45
  },
46
46
  "./runtime-base": {
47
- "types": "./dist/types/runtime-testing/base.d.ts",
48
47
  "jsnext:source": "./src/runtime-testing/base.ts",
49
48
  "node": {
50
49
  "import": "./dist/esm-node/runtime-testing/base.js",
51
50
  "require": "./dist/cjs/runtime-testing/base.js"
52
51
  },
52
+ "types": "./dist/types/runtime-testing/base.d.ts",
53
53
  "default": "./dist/esm/runtime-testing/base.js"
54
54
  },
55
55
  "./cli": {
56
- "types": "./dist/types/cli/index.d.ts",
57
56
  "jsnext:source": "./src/cli/index.ts",
57
+ "types": "./dist/types/cli/index.d.ts",
58
58
  "default": "./dist/cjs/cli/index.js"
59
59
  },
60
60
  "./bff-cli": {
61
- "types": "./dist/types/cli/bff/index.d.ts",
62
61
  "jsnext:source": "./src/cli/bff/index.ts",
62
+ "types": "./dist/types/cli/bff/index.d.ts",
63
63
  "default": "./dist/cjs/cli/bff/index.js"
64
64
  },
65
65
  "./base": {
66
- "types": "./dist/types/base/index.d.ts",
67
66
  "jsnext:source": "./src/base/index.ts",
67
+ "types": "./dist/types/base/index.d.ts",
68
68
  "default": "./dist/cjs/base/index.js"
69
69
  },
70
70
  "./bff": {
71
- "types": "./dist/types/runtime-testing/bff.d.ts",
72
71
  "jsnext:source": "./src/runtime-testing/bff.ts",
73
72
  "node": {
74
73
  "import": "./dist/esm-node/runtime-testing/bff.js",
75
74
  "require": "./dist/cjs/runtime-testing/bff.js"
76
75
  },
76
+ "types": "./dist/types/runtime-testing/bff.d.ts",
77
77
  "default": "./dist/esm/runtime-testing/bff.js"
78
78
  }
79
79
  },
@@ -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-1692692387710",
133
- "@modern-js/babel-compiler": "0.0.0-next-1692692387710",
134
- "@modern-js/utils": "0.0.0-next-1692692387710",
135
- "@modern-js/plugin": "0.0.0-next-1692692387710",
136
- "@modern-js/prod-server": "0.0.0-next-1692692387710",
137
- "@modern-js/types": "0.0.0-next-1692692387710"
132
+ "@modern-js/babel-preset-app": "0.0.0-next-1692696356093",
133
+ "@modern-js/babel-compiler": "0.0.0-next-1692696356093",
134
+ "@modern-js/utils": "0.0.0-next-1692696356093",
135
+ "@modern-js/prod-server": "0.0.0-next-1692696356093",
136
+ "@modern-js/plugin": "0.0.0-next-1692696356093"
138
137
  },
139
138
  "peerDependencies": {
140
139
  "react": ">=17",
141
140
  "react-dom": ">=17",
142
- "@modern-js/runtime": "0.0.0-next-1692692387710"
141
+ "@modern-js/runtime": "0.0.0-next-1692696356093"
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-1692692387710",
158
- "@modern-js/runtime": "0.0.0-next-1692692387710",
159
- "@modern-js/bff-core": "0.0.0-next-1692692387710",
160
- "@scripts/jest-config": "0.0.0-next-1692692387710",
161
- "@scripts/build": "0.0.0-next-1692692387710"
156
+ "@modern-js/core": "0.0.0-next-1692696356093",
157
+ "@modern-js/types": "0.0.0-next-1692696356093",
158
+ "@modern-js/bff-core": "0.0.0-next-1692696356093",
159
+ "@modern-js/runtime": "0.0.0-next-1692696356093",
160
+ "@scripts/build": "0.0.0-next-1692696356093",
161
+ "@scripts/jest-config": "0.0.0-next-1692696356093"
162
162
  },
163
163
  "sideEffects": false,
164
164
  "publishConfig": {