@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 +0 -18
- package/dist/types/cli/test.d.ts +0 -6
- package/package.json +19 -9
- package/src/cli/test.ts +1 -7
- package/tsconfig.json +1 -1
- package/type.d.ts +12 -0
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
|
package/dist/types/cli/test.d.ts
CHANGED
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.1.2
|
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.
|
27
|
-
"@modern-js/testing": "^1.1.
|
28
|
-
"@modern-js/utils": "^1.1.
|
29
|
-
"@modern-js/webpack": "^1.1.
|
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.
|
40
|
-
"@modern-js/runtime-core": "^1.1.
|
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.
|
50
|
-
"@modern-js/runtime-core": "^1.1.
|
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 {
|
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
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
|
+
}
|