@modern-js/plugin-testing 1.1.2-rc.0 → 1.1.2

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,23 +1,5 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 1.1.2-rc.0
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [d927bc83]
8
- - Updated dependencies [d73ff455]
9
- - Updated dependencies [9c1ab865]
10
- - Updated dependencies [d73ff455]
11
- - Updated dependencies [d73ff455]
12
- - Updated dependencies [d73ff455]
13
- - Updated dependencies [d73ff455]
14
- - @modern-js/utils@1.1.4-rc.0
15
- - @modern-js/core@1.1.4-rc.0
16
- - @modern-js/webpack@1.1.4-rc.0
17
- - @modern-js/testing@1.1.2-rc.0
18
- - @modern-js/runtime-core@1.1.2-rc.0
19
- - @modern-js/babel-compiler@1.1.3-rc.0
20
-
21
3
  ## 1.1.1
22
4
 
23
5
  ### Patch Changes
@@ -1,8 +1,2 @@
1
- import { TestConfig } from '@modern-js/testing';
2
- declare module '@modern-js/core' {
3
- interface UserConfig {
4
- testing: TestConfig;
5
- }
6
- }
7
1
  declare const test: () => Promise<void>;
8
2
  export default test;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.2-rc.0",
14
+ "version": "1.1.2",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -20,13 +20,23 @@
20
20
  "exports": {
21
21
  "./cli": "./dist/js/node/cli/index.js"
22
22
  },
23
+ "typesVersions": {
24
+ "*": {
25
+ ".": [
26
+ "./dist/types/index.d.ts"
27
+ ],
28
+ "type": [
29
+ "./type.d.ts"
30
+ ]
31
+ }
32
+ },
23
33
  "dependencies": {
24
34
  "@babel/preset-env": "^7.15.6",
25
35
  "@babel/runtime": "^7",
26
- "@modern-js/babel-compiler": "^1.1.3-rc.0",
27
- "@modern-js/testing": "^1.1.2-rc.0",
28
- "@modern-js/utils": "^1.1.4-rc.0",
29
- "@modern-js/webpack": "^1.1.4-rc.0",
36
+ "@modern-js/babel-compiler": "^1.1.2",
37
+ "@modern-js/testing": "^1.1.1",
38
+ "@modern-js/utils": "^1.1.2",
39
+ "@modern-js/webpack": "^1.1.2",
30
40
  "@testing-library/jest-dom": "^5.14.1",
31
41
  "@testing-library/react": "^12.0.0",
32
42
  "enhanced-resolve": "^5.8.2"
@@ -36,8 +46,8 @@
36
46
  "@modern-js-reduck/plugin-effects": "^1.0.0",
37
47
  "@modern-js-reduck/plugin-immutable": "^1.0.0",
38
48
  "@modern-js-reduck/store": "^1.0.0",
39
- "@modern-js/core": "^1.1.4-rc.0",
40
- "@modern-js/runtime-core": "^1.1.2-rc.0"
49
+ "@modern-js/core": "^1.1.2",
50
+ "@modern-js/runtime-core": "^1.1.1"
41
51
  },
42
52
  "devDependencies": {
43
53
  "@modern-js-reduck/plugin-auto-actions": "^1.0.0",
@@ -46,8 +56,8 @@
46
56
  "@modern-js-reduck/store": "^1.0.0",
47
57
  "@modern-js/plugin-testing": "^1.1.1",
48
58
  "@modern-js/module-tools": "^1.1.1",
49
- "@modern-js/core": "^1.1.4-rc.0",
50
- "@modern-js/runtime-core": "^1.1.2-rc.0",
59
+ "@modern-js/core": "^1.1.2",
60
+ "@modern-js/runtime-core": "^1.1.1",
51
61
  "@types/jest": "^26",
52
62
  "@types/node": "^14",
53
63
  "@types/react": "^17",
package/src/cli/test.ts CHANGED
@@ -1,17 +1,11 @@
1
1
  import path from 'path';
2
2
  import { compiler } from '@modern-js/babel-compiler';
3
3
  import { useAppContext, useResolvedConfigContext } from '@modern-js/core';
4
- import { TestConfig, runTest } from '@modern-js/testing';
4
+ import { runTest } from '@modern-js/testing';
5
5
  import { getWebpackConfig, WebpackConfigTarget } from '@modern-js/webpack';
6
6
  // import testingBffPlugin from '@modern-js/testing-plugin-bff';
7
7
  import modernTestPlugin from './plugins/modern';
8
8
 
9
- declare module '@modern-js/core' {
10
- interface UserConfig {
11
- testing: TestConfig;
12
- }
13
- }
14
-
15
9
  const test = async () => {
16
10
  // eslint-disable-next-line react-hooks/rules-of-hooks
17
11
  const userConfig = useResolvedConfigContext();
package/tsconfig.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "@/*": ["./src/*"]
9
9
  }
10
10
  },
11
- "include": ["src"]
11
+ "include": ["src", "./type.d.ts"]
12
12
  }
package/type.d.ts CHANGED
@@ -1,4 +1,16 @@
1
+ import { TestConfig } from '@modern-js/testing';
2
+
1
3
  declare module '@modern-js/runtime/testing' {
2
4
  export * from '@testing-library/react';
3
5
  export { renderApp, createStore } from '@modern-js/plugin-testing';
4
6
  }
7
+
8
+ declare module '@modern-js/core' {
9
+ interface UserConfig {
10
+ testing?: TestConfig;
11
+ }
12
+
13
+ interface ToolsConfig {
14
+ jest?: TestConfig['jest'];
15
+ }
16
+ }