@modern-js/plugin-testing 0.0.0-canary-20211221041133 → 0.0.0-runtime-2021112193858

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,18 +1,19 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 0.0.0-canary-20211221041133
4
-
5
- ### Minor Changes
6
-
7
- - faf12bd3: Add modern config schema and types of testing, tools.jest.
8
- Add typesVersions for re-exporting types of @modern-js/plugin-testing.
3
+ ## 0.0.0-runtime-2021112193858
9
4
 
10
5
  ### Patch Changes
11
6
 
12
- - Updated dependencies [faf12bd3]
7
+ - 8698465e: fix: dependence version
8
+ - Updated dependencies [8698465e]
13
9
  - Updated dependencies [e04914ce]
14
10
  - Updated dependencies [e04914ce]
15
- - @modern-js/core@0.0.0-canary-20211221041133
11
+ - @modern-js/core@0.0.0-runtime-2021112193858
12
+ - @modern-js/webpack@0.0.0-runtime-2021112193858
13
+ - @modern-js/testing@0.0.0-runtime-2021112193858
14
+ - @modern-js/runtime-core@0.0.0-runtime-2021112193858
15
+ - @modern-js/babel-compiler@0.0.0-runtime-2021112193858
16
+ - @modern-js/utils@0.0.0-runtime-2021112193858
16
17
 
17
18
  ## 1.1.1
18
19
 
@@ -1,2 +1,8 @@
1
+ import { TestConfig } from '@modern-js/testing';
2
+ declare module '@modern-js/core' {
3
+ interface UserConfig {
4
+ testing: TestConfig;
5
+ }
6
+ }
1
7
  declare const test: () => Promise<void>;
2
8
  export default test;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20211221041133",
14
+ "version": "0.0.0-runtime-2021112193858",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -20,23 +20,13 @@
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
- },
33
23
  "dependencies": {
34
24
  "@babel/preset-env": "^7.15.6",
35
25
  "@babel/runtime": "^7",
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",
26
+ "@modern-js/babel-compiler": "^0.0.0-runtime-2021112193858",
27
+ "@modern-js/testing": "^0.0.0-runtime-2021112193858",
28
+ "@modern-js/utils": "^0.0.0-runtime-2021112193858",
29
+ "@modern-js/webpack": "^0.0.0-runtime-2021112193858",
40
30
  "@testing-library/jest-dom": "^5.14.1",
41
31
  "@testing-library/react": "^12.0.0",
42
32
  "enhanced-resolve": "^5.8.2"
@@ -46,23 +36,23 @@
46
36
  "@modern-js-reduck/plugin-effects": "^1.0.0",
47
37
  "@modern-js-reduck/plugin-immutable": "^1.0.0",
48
38
  "@modern-js-reduck/store": "^1.0.0",
49
- "@modern-js/core": "^0.0.0-canary-20211221041133",
50
- "@modern-js/runtime-core": "^1.1.1"
39
+ "@modern-js/core": "^0.0.0-runtime-2021112193858",
40
+ "@modern-js/runtime-core": "^0.0.0-runtime-2021112193858"
51
41
  },
52
42
  "devDependencies": {
53
43
  "@modern-js-reduck/plugin-auto-actions": "^1.0.0",
54
44
  "@modern-js-reduck/plugin-effects": "^1.0.0",
55
45
  "@modern-js-reduck/plugin-immutable": "^1.0.0",
56
46
  "@modern-js-reduck/store": "^1.0.0",
57
- "@modern-js/plugin-testing": "^0.0.0-canary-20211221041133",
58
- "@modern-js/module-tools": "^1.1.1",
59
- "@modern-js/core": "^0.0.0-canary-20211221041133",
60
- "@modern-js/runtime-core": "^1.1.1",
47
+ "@modern-js/plugin-testing": "^0.0.0-runtime-2021112193858",
48
+ "@modern-js/module-tools": "^0.0.0-runtime-2021112193858",
49
+ "@modern-js/core": "^0.0.0-runtime-2021112193858",
50
+ "@modern-js/runtime-core": "^0.0.0-runtime-2021112193858",
61
51
  "@types/jest": "^26",
62
52
  "@types/node": "^14",
63
53
  "@types/react": "^17",
64
54
  "@types/react-dom": "^17",
65
- "typescript": "^4"
55
+ "typescript": "^4.4.4"
66
56
  },
67
57
  "sideEffects": false,
68
58
  "modernConfig": {},
@@ -74,6 +64,5 @@
74
64
  "new": "modern new",
75
65
  "build": "modern build",
76
66
  "test": "modern test --passWithNoTests"
77
- },
78
- "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
67
+ }
79
68
  }
package/src/cli/test.ts CHANGED
@@ -1,11 +1,17 @@
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 { runTest } from '@modern-js/testing';
4
+ import { TestConfig, 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
+
9
15
  const test = async () => {
10
16
  // eslint-disable-next-line react-hooks/rules-of-hooks
11
17
  const userConfig = useResolvedConfigContext();
package/tsconfig.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "@/*": ["./src/*"]
9
9
  }
10
10
  },
11
- "include": ["src", "./type.d.ts"]
11
+ "include": ["src"]
12
12
  }
package/type.d.ts CHANGED
@@ -1,16 +1,4 @@
1
- import { TestConfig } from '@modern-js/testing';
2
-
3
1
  declare module '@modern-js/runtime/testing' {
4
2
  export * from '@testing-library/react';
5
3
  export { renderApp, createStore } from '@modern-js/plugin-testing';
6
4
  }
7
-
8
- declare module '@modern-js/core' {
9
- interface UserConfig {
10
- testing?: TestConfig;
11
- }
12
-
13
- interface ToolsConfig {
14
- jest?: TestConfig['jest'];
15
- }
16
- }