@ornikar/jest-config-react-native 8.4.0 → 8.5.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,29 @@
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
+ ## [8.5.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@8.4.1...@ornikar/jest-config-react-native@8.5.0) (2023-09-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **jest-config-react-native:** update sucrase ([a8d8a63](https://github.com/ornikar/shared-configs/commit/a8d8a63c6a63ea52a41ed74ef67f3c1069d5d09a))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * storybook mocks should be in testSetupAfterEnv to make sure testing-library is cleanup properly [no issue] ([#969](https://github.com/ornikar/shared-configs/issues/969)) ([10ed164](https://github.com/ornikar/shared-configs/commit/10ed164f69c3003e9ee87c8b1c2cdfeb154a7ffe))
17
+
18
+
19
+
20
+ ## [8.4.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@8.4.0...@ornikar/jest-config-react-native@8.4.1) (2023-09-13)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **jest-config-react-native:** storybook mock stories unmount after test [no issue] ([#968](https://github.com/ornikar/shared-configs/issues/968)) ([8f45256](https://github.com/ornikar/shared-configs/commit/8f45256feddedbed10b8fdcdbfadf70245c72e82))
26
+
27
+
28
+
6
29
  ## [8.4.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@8.3.3...@ornikar/jest-config-react-native@8.4.0) (2023-09-07)
7
30
 
8
31
 
@@ -2,6 +2,12 @@
2
2
 
3
3
  'use strict';
4
4
 
5
+ if (!global.afterAll) {
6
+ throw new Error(
7
+ 'Missing afterAll global in mock @storybook/react-native. Please check your jest test-setup and make sure you use testSetupAfterEnv.',
8
+ );
9
+ }
10
+
5
11
  const decorateStory = (storyFn, decorators) =>
6
12
  // eslint-disable-next-line unicorn/no-array-reduce
7
13
  decorators.reduce(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "8.4.0",
3
+ "version": "8.5.0",
4
4
  "description": "✅⚛️📱 jest config for react-native",
5
5
  "repository": {
6
6
  "directory": "@ornikar/jest-config-react-native",
@@ -43,12 +43,12 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@ornikar/jest-config-react": "11.3.0",
46
+ "@ornikar/jest-config-react": "11.3.1",
47
47
  "@sucrase/jest-plugin": "^3.0.0",
48
- "sucrase": "^3.29.0"
48
+ "sucrase": "^3.34.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@testing-library/react-native": "12.2.2",
51
+ "@testing-library/react-native": "12.3.0",
52
52
  "jest-expo": "49.0.0",
53
53
  "react": "18.2.0",
54
54
  "react-test-renderer": "18.2.0"
@@ -56,5 +56,5 @@
56
56
  "scripts": {
57
57
  "lint:eslint": "yarn ../.. eslint --report-unused-disable-directives --quiet @ornikar/jest-config-react-native"
58
58
  },
59
- "gitHead": "e860e5f61cc31978a6685a5659bb6dcb33a0941b"
59
+ "gitHead": "e52ed8a41bef5753f9509544435321a88430e2c2"
60
60
  }