@modern-js/plugin-testing 1.1.3 → 1.1.4

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.
@@ -42,6 +42,7 @@ export default ((webpackConfig, userConfig, pwd) => createPlugin(() => ({
42
42
  rootDir: pwd || process.cwd(),
43
43
  // todo: diffrent test root for diffrent solutions
44
44
  // testMatch: [`<rootDir>/(src|tests|electron)/**/*.test.[jt]s?(x)`],
45
+ // testMatch bug on windows, issue: https://github.com/facebook/jest/issues/7914
45
46
  testMatch: [`<rootDir>/src/**/*.test.[jt]s?(x)`, `<rootDir>/tests/**/*.test.[jt]s?(x)`, `<rootDir>/electron/**/*.test.[jt]s?(x)`]
46
47
  });
47
48
  return next(utils);
@@ -55,6 +55,7 @@ var _default = (webpackConfig, userConfig, pwd) => (0, _testing.createPlugin)(()
55
55
  rootDir: pwd || process.cwd(),
56
56
  // todo: diffrent test root for diffrent solutions
57
57
  // testMatch: [`<rootDir>/(src|tests|electron)/**/*.test.[jt]s?(x)`],
58
+ // testMatch bug on windows, issue: https://github.com/facebook/jest/issues/7914
58
59
  testMatch: [`<rootDir>/src/**/*.test.[jt]s?(x)`, `<rootDir>/tests/**/*.test.[jt]s?(x)`, `<rootDir>/electron/**/*.test.[jt]s?(x)`]
59
60
  });
60
61
  return next(utils);
@@ -43,6 +43,7 @@ export default (function (webpackConfig, userConfig, pwd) {
43
43
  rootDir: pwd || process.cwd(),
44
44
  // todo: diffrent test root for diffrent solutions
45
45
  // testMatch: [`<rootDir>/(src|tests|electron)/**/*.test.[jt]s?(x)`],
46
+ // testMatch bug on windows, issue: https://github.com/facebook/jest/issues/7914
46
47
  testMatch: ["<rootDir>/src/**/*.test.[jt]s?(x)", "<rootDir>/tests/**/*.test.[jt]s?(x)", "<rootDir>/electron/**/*.test.[jt]s?(x)"]
47
48
  });
48
49
  return next(utils);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.3",
14
+ "version": "1.1.4",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -47,6 +47,7 @@ export default (webpackConfig: any, userConfig: any, pwd: string) =>
47
47
  rootDir: pwd || process.cwd(),
48
48
  // todo: diffrent test root for diffrent solutions
49
49
  // testMatch: [`<rootDir>/(src|tests|electron)/**/*.test.[jt]s?(x)`],
50
+ // testMatch bug on windows, issue: https://github.com/facebook/jest/issues/7914
50
51
  testMatch: [
51
52
  `<rootDir>/src/**/*.test.[jt]s?(x)`,
52
53
  `<rootDir>/tests/**/*.test.[jt]s?(x)`,
package/type.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import '@modern-js/core';
1
2
  declare module '@modern-js/runtime/testing' {
2
3
  export * from '@testing-library/react';
3
4
  export { renderApp, createStore } from '@modern-js/plugin-testing';