@modern-js/plugin-testing 1.4.0 → 1.4.1
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,5 +1,23 @@
|
|
1
1
|
# @modern-js/plugin-testing
|
2
2
|
|
3
|
+
## 1.4.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
8
|
+
- 132f7b53: feat: move config declarations to @modern-js/core
|
9
|
+
- 8491b6dd: fix: optimise "types" exports from plugin
|
10
|
+
- Updated dependencies [bebb39b6]
|
11
|
+
- Updated dependencies [4b4e73b7]
|
12
|
+
- Updated dependencies [da60172c]
|
13
|
+
- Updated dependencies [6cff93dc]
|
14
|
+
- Updated dependencies [132f7b53]
|
15
|
+
- Updated dependencies [9d4a005b]
|
16
|
+
- @modern-js/webpack@1.5.3
|
17
|
+
- @modern-js/testing@1.4.1
|
18
|
+
- @modern-js/utils@1.3.7
|
19
|
+
- @modern-js/testing-plugin-bff@1.3.0
|
20
|
+
|
3
21
|
## 1.4.0
|
4
22
|
|
5
23
|
### Minor Changes
|
package/dist/types/cli/test.d.ts
CHANGED
@@ -1,11 +1,3 @@
|
|
1
1
|
import type { PluginAPI } from '@modern-js/core';
|
2
2
|
declare const test: (api: PluginAPI) => Promise<void>;
|
3
|
-
export default test;
|
4
|
-
declare module '@modern-js/core' {
|
5
|
-
interface UserConfig {
|
6
|
-
testing?: import('@modern-js/testing').TestConfig;
|
7
|
-
}
|
8
|
-
interface ToolsConfig {
|
9
|
-
jest?: import('@modern-js/testing').TestConfig['jest'];
|
10
|
-
}
|
11
|
-
}
|
3
|
+
export default test;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { NormalizedConfig } from '@modern-js/core';
|
1
|
+
import type { NormalizedConfig } from '@modern-js/core';
|
2
2
|
export default function resolvePlugins(features: NormalizedConfig['runtime']): any[];
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
@@ -11,13 +11,17 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.4.
|
14
|
+
"version": "1.4.1",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
18
18
|
"module": "./dist/js/treeshaking/index.js",
|
19
19
|
"jsnext:modern": "./dist/js/modern/index.js",
|
20
20
|
"exports": {
|
21
|
+
"./types": {
|
22
|
+
"jsnext:source": "./type.d.ts",
|
23
|
+
"default": "./type.d.ts"
|
24
|
+
},
|
21
25
|
"./type": {
|
22
26
|
"jsnext:source": "./type.d.ts",
|
23
27
|
"default": "./type.d.ts"
|
@@ -68,6 +72,9 @@
|
|
68
72
|
"type": [
|
69
73
|
"./type.d.ts"
|
70
74
|
],
|
75
|
+
"types": [
|
76
|
+
"./type.d.ts"
|
77
|
+
],
|
71
78
|
"runtime-base": [
|
72
79
|
"./dist/types/runtime-testing/base.d.ts"
|
73
80
|
]
|
@@ -77,9 +84,9 @@
|
|
77
84
|
"@babel/preset-env": "^7.15.6",
|
78
85
|
"@babel/runtime": "^7",
|
79
86
|
"@modern-js/babel-compiler": "^1.2.1",
|
80
|
-
"@modern-js/testing": "^1.4.
|
81
|
-
"@modern-js/utils": "^1.3.
|
82
|
-
"@modern-js/webpack": "^1.5.
|
87
|
+
"@modern-js/testing": "^1.4.1",
|
88
|
+
"@modern-js/utils": "^1.3.7",
|
89
|
+
"@modern-js/webpack": "^1.5.3",
|
83
90
|
"@testing-library/jest-dom": "^5.14.1",
|
84
91
|
"@testing-library/react": "^12.0.0",
|
85
92
|
"enhanced-resolve": "^5.8.3",
|
@@ -90,7 +97,6 @@
|
|
90
97
|
"@modern-js-reduck/plugin-effects": "^1.0.0",
|
91
98
|
"@modern-js-reduck/plugin-immutable": "^1.0.0",
|
92
99
|
"@modern-js-reduck/store": "^1.0.0",
|
93
|
-
"@modern-js/core": "^1.6.0",
|
94
100
|
"@modern-js/runtime-core": "^1.4.0"
|
95
101
|
},
|
96
102
|
"devDependencies": {
|
@@ -99,8 +105,8 @@
|
|
99
105
|
"@modern-js-reduck/plugin-immutable": "^1.0.0",
|
100
106
|
"@modern-js-reduck/store": "^1.0.0",
|
101
107
|
"@scripts/build": "0.0.0",
|
102
|
-
"@modern-js/core": "
|
103
|
-
"@modern-js/runtime-core": "
|
108
|
+
"@modern-js/core": "1.6.1",
|
109
|
+
"@modern-js/runtime-core": "1.4.0",
|
104
110
|
"@types/jest": "^26",
|
105
111
|
"@types/node": "^14",
|
106
112
|
"@types/react": "^17",
|
package/type.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import '@modern-js/core';
|
2
1
|
import "@testing-library/react"
|
3
2
|
import "@testing-library/jest-dom"
|
4
3
|
import "./dist/types/runtime-testing"
|
@@ -7,13 +6,3 @@ declare module '@modern-js/runtime/testing' {
|
|
7
6
|
export * from '@testing-library/react';
|
8
7
|
export { renderApp, createStore, testBff } from './dist/types/runtime-testing';
|
9
8
|
}
|
10
|
-
|
11
|
-
declare module '@modern-js/core' {
|
12
|
-
interface UserConfig {
|
13
|
-
testing?: import('@modern-js/testing').TestConfig;
|
14
|
-
}
|
15
|
-
|
16
|
-
interface ToolsConfig {
|
17
|
-
jest?: import('@modern-js/testing').TestConfig['jest'];
|
18
|
-
}
|
19
|
-
}
|