@ornikar/jest-config-react-native 7.1.0-alpha.0 → 7.1.0-alpha.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
@@ -6,9 +6,25 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
6
6
  # [7.1.0-alpha.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@7.0.1...@ornikar/jest-config-react-native@7.1.0-alpha.0) (2022-11-17)
7
7
 
8
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
+
9
14
  ### Features
10
15
 
11
- * update jest to v27 ([8ac69d3](https://github.com/ornikar/shared-configs/commit/8ac69d30cdbd7f83a0c8192c8e9b82b82fa8337d))
16
+ * update jest to v27 ([0400b66](https://github.com/ornikar/shared-configs/commit/0400b66eea4e3c0dcd613573f4f595b0be259c5f))
17
+
18
+
19
+
20
+
21
+
22
+ ## [7.0.2](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@7.0.1...@ornikar/jest-config-react-native@7.0.2) (2022-11-17)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **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
28
 
13
29
 
14
30
 
@@ -2,9 +2,6 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- const { render, waitFor } = require('@testing-library/react-native');
6
- const React = require('react');
7
-
8
5
  const decorateStory = (storyFn, decorators) =>
9
6
  // eslint-disable-next-line unicorn/no-array-reduce
10
7
  decorators.reduce(
@@ -48,6 +45,9 @@ exports.action = (actionName) => jest.fn();
48
45
 
49
46
  // Mocked version of: `import { storiesOf } from '@storybook/react-native'`
50
47
  exports.storiesOf = (groupName) => {
48
+ // 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
49
+ const { render, waitFor } = require('@testing-library/react-native');
50
+
51
51
  const localDecorators = [];
52
52
  const localParameters = {};
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "7.1.0-alpha.0",
3
+ "version": "7.1.0-alpha.1",
4
4
  "description": "✅⚛️📱 jest config for react-native",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@ornikar/jest-config-react": "^10.1.0-alpha.0",
31
+ "@ornikar/jest-config-react": "^10.2.0-alpha.0",
32
32
  "@sucrase/jest-plugin": "^2.2.1"
33
33
  },
34
34
  "devDependencies": {
@@ -37,5 +37,5 @@
37
37
  "jest-expo": "45.0.1",
38
38
  "react": "17.0.2"
39
39
  },
40
- "gitHead": "8ac69d30cdbd7f83a0c8192c8e9b82b82fa8337d"
40
+ "gitHead": "0400b66eea4e3c0dcd613573f4f595b0be259c5f"
41
41
  }