@ornikar/jest-config-react-native 7.0.0 → 7.0.2

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,28 @@
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
+ ## [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)
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
+
15
+
16
+
17
+ ## [7.0.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@7.0.0...@ornikar/jest-config-react-native@7.0.1) (2022-11-03)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fix transformIgnorePatterns bug introduced in [#801](https://github.com/ornikar/shared-configs/issues/801) ([bf74ac2](https://github.com/ornikar/shared-configs/commit/bf74ac295ce812ffe8f123b7ce19353d8a8bd077))
23
+
24
+
25
+
26
+
27
+
6
28
  # [7.0.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@6.0.0...@ornikar/jest-config-react-native@7.0.0) (2022-11-03)
7
29
 
8
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/jest-preset.js CHANGED
@@ -19,7 +19,7 @@ module.exports = {
19
19
  },
20
20
  // override expo transformIgnorePatterns with custom config
21
21
  transformIgnorePatterns: [
22
- 'node_modules/(?!(react-native|@react-native|expo|@expo(nent)?/.*|react-navigation|@react-navigation/.*|native-base)/)',
22
+ 'node_modules/(?!(react-native.*|@react-native.*|expo.*|@expo(nent)?/.*|react-navigation.*|@react-navigation/.*|native-base)/)',
23
23
  ],
24
24
  transform: {
25
25
  ...customTransforms,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
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.0.1",
31
+ "@ornikar/jest-config-react": "^10.1.0",
32
32
  "@sucrase/jest-plugin": "^2.2.0"
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": "573d27330d11ad5be5398627c39bf85b52fc5334"
40
+ "gitHead": "ff644cdcade29e287265994253b213e4cd32f765"
41
41
  }