@ornikar/jest-config-react 10.1.0-alpha.0 → 10.2.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,13 +3,34 @@
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)
6
+ # [10.2.0-alpha.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@10.0.1...@ornikar/jest-config-react@10.2.0-alpha.0) (2022-11-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **jest-config-react:** fix testing library cleanup ECF-58 ([#804](https://github.com/ornikar/shared-configs/issues/804)) ([c23b3f4](https://github.com/ornikar/shared-configs/commit/c23b3f4d7742e40cd8e63b31f1273926185376ad))
12
+
13
+
14
+ ### Features
15
+
16
+ * **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))
17
+ * update jest to v27 ([0400b66](https://github.com/ornikar/shared-configs/commit/0400b66eea4e3c0dcd613573f4f595b0be259c5f))
18
+
19
+
20
+
21
+
22
+
23
+ # [10.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react@10.0.1...@ornikar/jest-config-react@10.1.0) (2022-11-17)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **jest-config-react:** fix testing library cleanup ECF-58 ([#804](https://github.com/ornikar/shared-configs/issues/804)) ([c23b3f4](https://github.com/ornikar/shared-configs/commit/c23b3f4d7742e40cd8e63b31f1273926185376ad))
7
29
 
8
30
 
9
31
  ### Features
10
32
 
11
33
  * **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
34
 
14
35
 
15
36
 
@@ -2,8 +2,6 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- const { render, waitFor } = require('@testing-library/react');
6
-
7
5
  const decorateStory = (storyFn, decorators) =>
8
6
  decorators.reduce(
9
7
  (decorated, decorator) =>
@@ -44,6 +42,10 @@ exports.action = (actionName) => jest.fn();
44
42
 
45
43
  // Mocked version of: `import { storiesOf } from '@storybook/react'`
46
44
  exports.storiesOf = (groupName) => {
45
+ // eslint-disable-next-line global-require -- importing here allows cleanup to be called and prevent useless require in all tests as decorators/parameters are added in test-setup, before all tests
46
+ const { render, waitFor } = require('@testing-library/react');
47
+ // testing-library registers cleanup via afterEach, which is not available in test-setup, only on test-setup-after-env.
48
+
47
49
  const localDecorators = [];
48
50
  const localParameters = {};
49
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react",
3
- "version": "10.1.0-alpha.0",
3
+ "version": "10.2.0-alpha.0",
4
4
  "description": "✅⚛️ jest config for react",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "react-dom": "^16.6.3 || ^17.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@ornikar/jest-config": "^9.2.0-alpha.0",
26
+ "@ornikar/jest-config": "^9.2.0-alpha.1",
27
27
  "identity-obj-proxy": "^3.0.0"
28
28
  },
29
29
  "devDependencies": {
@@ -33,5 +33,5 @@
33
33
  "react": "17.0.2",
34
34
  "react-dom": "17.0.2"
35
35
  },
36
- "gitHead": "8ac69d30cdbd7f83a0c8192c8e9b82b82fa8337d"
36
+ "gitHead": "0400b66eea4e3c0dcd613573f4f595b0be259c5f"
37
37
  }