@ornikar/jest-config-react 10.0.0 → 10.1.0-alpha.0

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
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.1.0-alpha.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@10.0.1...@ornikar/jest-config-react@10.1.0-alpha.0) (2022-11-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **jest-config-react:** configure default max workers ECF-61 ([#805](https://github.com/ornikar/shared-configs/issues/805)) ([779f48c](https://github.com/ornikar/shared-configs/commit/779f48c43e464b03482e23b1f9d4c101ed37141c))
12
+ * update jest to v27 ([8ac69d3](https://github.com/ornikar/shared-configs/commit/8ac69d30cdbd7f83a0c8192c8e9b82b82fa8337d))
13
+
14
+
15
+
16
+
17
+
18
+ ## [10.0.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@10.0.0...@ornikar/jest-config-react@10.0.1) (2022-10-28)
19
+
20
+ **Note:** Version bump only for package @ornikar/jest-config-react
21
+
22
+
23
+
24
+
25
+
6
26
  # [10.0.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@9.6.4...@ornikar/jest-config-react@10.0.0) (2022-08-17)
7
27
 
8
28
 
package/jest-preset.js CHANGED
@@ -8,6 +8,12 @@ const useCraco = fs.existsSync(path.resolve('craco.config.js'));
8
8
 
9
9
  module.exports = {
10
10
  ...baseJestPreset,
11
+
12
+ // default maxWorkers is number of the cores - 1. This can means a lot of threads and memory usage, resulting in slower tests
13
+ // 50% is a good compromise as it still adapt the number of threads based on the number of core available while reducing the memory usage
14
+ // This is still configurable with cli `--max-workers` option.
15
+ maxWorkers: '50%',
16
+
11
17
  testMatch: [
12
18
  ...baseJestPreset.testMatch,
13
19
  baseJestPreset.testMatch[0].replace('**/__tests__/**/*.', '**/stories.'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react",
3
- "version": "10.0.0",
3
+ "version": "10.1.0-alpha.0",
4
4
  "description": "✅⚛️ jest config for react",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,20 +18,20 @@
18
18
  "peerDependencies": {
19
19
  "@testing-library/react": "^11.2.5 || ^12.0.0",
20
20
  "@testing-library/react-hooks": "^5.1.0 || ^7.0.0",
21
- "jest": "^26.6.3",
21
+ "jest": "^27.5.1",
22
22
  "react": "^16.6.3 || ^17.0.0",
23
23
  "react-dom": "^16.6.3 || ^17.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@ornikar/jest-config": "^9.0.0",
26
+ "@ornikar/jest-config": "^9.2.0-alpha.0",
27
27
  "identity-obj-proxy": "^3.0.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/react": "12.1.5",
31
31
  "@testing-library/react-hooks": "7.0.2",
32
- "jest": "26.6.3",
32
+ "jest": "27.5.1",
33
33
  "react": "17.0.2",
34
34
  "react-dom": "17.0.2"
35
35
  },
36
- "gitHead": "fdf5cc641c6311c60b239dd9f7b77a7adb1c09c5"
36
+ "gitHead": "8ac69d30cdbd7f83a0c8192c8e9b82b82fa8337d"
37
37
  }