@modern-js/plugin-testing 0.0.0-windows-2021101142341 → 0.0.0-windows-2021102103427

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,17 +1,17 @@
1
1
  # @modern-js/plugin-testing
2
2
 
3
- ## 0.0.0-windows-2021101142341
3
+ ## 0.0.0-windows-2021102103427
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - windows compatibility
7
+ - windows test
8
8
  - Updated dependencies [undefined]
9
- - @modern-js/core@0.0.0-windows-2021101142341
10
- - @modern-js/webpack@0.0.0-windows-2021101142341
11
- - @modern-js/testing@0.0.0-windows-2021101142341
12
- - @modern-js/utils@0.0.0-windows-2021101142341
13
- - @modern-js/runtime-core@0.0.0-windows-2021101142341
14
- - @modern-js/babel-compiler@0.0.0-windows-2021101142341
9
+ - @modern-js/core@0.0.0-windows-2021102103427
10
+ - @modern-js/webpack@0.0.0-windows-2021102103427
11
+ - @modern-js/testing@0.0.0-windows-2021102103427
12
+ - @modern-js/utils@0.0.0-windows-2021102103427
13
+ - @modern-js/runtime-core@0.0.0-windows-2021102103427
14
+ - @modern-js/babel-compiler@0.0.0-windows-2021102103427
15
15
 
16
16
  ## 1.0.0
17
17
 
@@ -39,8 +39,9 @@ export default ((webpackConfig, userConfig, pwd) => createPlugin(() => ({
39
39
  resolver: require.resolve("../resolver")
40
40
  });
41
41
  utils.setJestConfig({
42
+ rootDir: pwd || process.cwd(),
42
43
  // todo: diffrent test root for diffrent solutions
43
- testMatch: [`${pwd || process.cwd()}/(src|tests|api|electron)/**/*.test.[jt]s?(x)`]
44
+ testMatch: [`**/(src|tests|api|electron)/**/*.test.[jt]s?(x)`]
44
45
  });
45
46
  return next(utils);
46
47
  }
@@ -52,8 +52,9 @@ var _default = (webpackConfig, userConfig, pwd) => (0, _testing.createPlugin)(()
52
52
  resolver: require.resolve("../resolver")
53
53
  });
54
54
  utils.setJestConfig({
55
+ rootDir: pwd || process.cwd(),
55
56
  // todo: diffrent test root for diffrent solutions
56
- testMatch: [`${pwd || process.cwd()}/(src|tests|api|electron)/**/*.test.[jt]s?(x)`]
57
+ testMatch: [`**/(src|tests|api|electron)/**/*.test.[jt]s?(x)`]
57
58
  });
58
59
  return next(utils);
59
60
  }
@@ -40,8 +40,9 @@ export default (function (webpackConfig, userConfig, pwd) {
40
40
  resolver: require.resolve("../resolver")
41
41
  });
42
42
  utils.setJestConfig({
43
+ rootDir: pwd || process.cwd(),
43
44
  // todo: diffrent test root for diffrent solutions
44
- testMatch: ["".concat(pwd || process.cwd(), "/(src|tests|api|electron)/**/*.test.[jt]s?(x)")]
45
+ testMatch: ["**/(src|tests|api|electron)/**/*.test.[jt]s?(x)"]
45
46
  });
46
47
  return next(utils);
47
48
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-windows-2021101142341",
14
+ "version": "0.0.0-windows-2021102103427",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -23,10 +23,10 @@
23
23
  "dependencies": {
24
24
  "@babel/preset-env": "^7.15.6",
25
25
  "@babel/runtime": "^7",
26
- "@modern-js/babel-compiler": "^0.0.0-windows-2021101142341",
27
- "@modern-js/testing": "^0.0.0-windows-2021101142341",
28
- "@modern-js/utils": "^0.0.0-windows-2021101142341",
29
- "@modern-js/webpack": "^0.0.0-windows-2021101142341",
26
+ "@modern-js/babel-compiler": "^0.0.0-windows-2021102103427",
27
+ "@modern-js/testing": "^0.0.0-windows-2021102103427",
28
+ "@modern-js/utils": "^0.0.0-windows-2021102103427",
29
+ "@modern-js/webpack": "^0.0.0-windows-2021102103427",
30
30
  "@testing-library/jest-dom": "^5.14.1",
31
31
  "@testing-library/react": "^12.0.0",
32
32
  "enhanced-resolve": "^5.8.2"
@@ -36,18 +36,18 @@
36
36
  "@modern-js-reduck/plugin-effects": "^1.0.0",
37
37
  "@modern-js-reduck/plugin-immutable": "^1.0.0",
38
38
  "@modern-js-reduck/store": "^1.0.0",
39
- "@modern-js/core": "^0.0.0-windows-2021101142341",
40
- "@modern-js/runtime-core": "^0.0.0-windows-2021101142341"
39
+ "@modern-js/core": "^0.0.0-windows-2021102103427",
40
+ "@modern-js/runtime-core": "^0.0.0-windows-2021102103427"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@modern-js-reduck/plugin-auto-actions": "^1.0.0",
44
44
  "@modern-js-reduck/plugin-effects": "^1.0.0",
45
45
  "@modern-js-reduck/plugin-immutable": "^1.0.0",
46
46
  "@modern-js-reduck/store": "^1.0.0",
47
- "@modern-js/plugin-testing": "^0.0.0-windows-2021101142341",
48
- "@modern-js/module-tools": "^0.0.0-windows-2021101142341",
49
- "@modern-js/core": "^0.0.0-windows-2021101142341",
50
- "@modern-js/runtime-core": "^0.0.0-windows-2021101142341",
47
+ "@modern-js/plugin-testing": "^0.0.0-windows-2021102103427",
48
+ "@modern-js/module-tools": "^0.0.0-windows-2021102103427",
49
+ "@modern-js/core": "^0.0.0-windows-2021102103427",
50
+ "@modern-js/runtime-core": "^0.0.0-windows-2021102103427",
51
51
  "@types/jest": "^26",
52
52
  "@types/node": "^14",
53
53
  "@types/react": "^17",
@@ -44,12 +44,9 @@ export default (webpackConfig: any, userConfig: any, pwd: string) =>
44
44
  });
45
45
 
46
46
  utils.setJestConfig({
47
+ rootDir: pwd || process.cwd(),
47
48
  // todo: diffrent test root for diffrent solutions
48
- testMatch: [
49
- `${
50
- pwd || process.cwd()
51
- }/(src|tests|api|electron)/**/*.test.[jt]s?(x)`,
52
- ],
49
+ testMatch: [`**/(src|tests|api|electron)/**/*.test.[jt]s?(x)`],
53
50
  });
54
51
 
55
52
  return next(utils);