@ornikar/jest-config-react-native 5.0.0 → 6.0.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,38 @@
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
+ # [6.0.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@5.1.0...@ornikar/jest-config-react-native@6.0.0) (2022-10-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **lerna-config:** integrate lerna cli in lerna-config ARCH-1591 ([#789](https://github.com/ornikar/shared-configs/issues/789)) ([07853d5](https://github.com/ornikar/shared-configs/commit/07853d50662d516a0b03f3e0ad38f7e090f433ab))
12
+
13
+
14
+ ### Reverts
15
+
16
+ * feat(lerna-config): integrate lerna cli in lerna-config ARCH-1591 ([#791](https://github.com/ornikar/shared-configs/issues/791)) ([7679cf4](https://github.com/ornikar/shared-configs/commit/7679cf4ca3a3e58d6875dc9ef05762799b7f6ba0))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * **lerna-config:** requires to remove direct lerna in devDependencies
22
+
23
+
24
+
25
+
26
+
27
+ # [5.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@5.0.0...@ornikar/jest-config-react-native@5.1.0) (2022-09-30)
28
+
29
+
30
+ ### Features
31
+
32
+ * **jest-config-react-native:** add reanimated mock in test setup [no issue] ([#790](https://github.com/ornikar/shared-configs/issues/790)) ([19b571b](https://github.com/ornikar/shared-configs/commit/19b571b8a03dcc67ee926b54a2d31ea4cbb7bc5d))
33
+
34
+
35
+
36
+
37
+
6
38
  # [5.0.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.5.0...@ornikar/jest-config-react-native@5.0.0) (2022-08-17)
7
39
 
8
40
 
package/jest-preset.js CHANGED
@@ -7,7 +7,7 @@ const { customTransforms } = require('./customTransforms');
7
7
  module.exports = {
8
8
  ...baseOrnikarPreset,
9
9
  ...expoPreset,
10
- setupFiles: [...expoPreset.setupFiles, ...baseOrnikarPreset.setupFiles],
10
+ setupFiles: [...expoPreset.setupFiles, ...baseOrnikarPreset.setupFiles, require.resolve('./test-setup')],
11
11
  testMatch: baseOrnikarPreset.testMatch,
12
12
  moduleNameMapper: {
13
13
  ...expoPreset.moduleNameMapper,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
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.0",
31
+ "@ornikar/jest-config-react": "^10.0.1",
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": "fdf5cc641c6311c60b239dd9f7b77a7adb1c09c5"
40
+ "gitHead": "66a052735fc33015e4453739a513e5d6d8af930a"
41
41
  }
package/test-setup.js ADDED
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ // https://github.com/software-mansion/react-native-reanimated/issues/3125
4
+ global.ReanimatedDataMock = {
5
+ now: () => 0,
6
+ };
@@ -9,7 +9,7 @@ module.exports = {
9
9
  ...baseOrnikarPreset,
10
10
  ...expoPreset,
11
11
  snapshotResolver: require.resolve('../snapshot-resolvers/resolver.web.js'),
12
- setupFiles: [...expoPreset.setupFiles, ...baseOrnikarPreset.setupFiles],
12
+ setupFiles: [...expoPreset.setupFiles, ...baseOrnikarPreset.setupFiles, require.resolve('../test-setup')],
13
13
  testMatch: [
14
14
  ...baseOrnikarPreset.testMatch,
15
15
  baseOrnikarPreset.testMatch[0].replace('**/__tests__/**/*.', '**/stories.'),