@ornikar/jest-config-react-native 15.1.1-canary.5642ce758b3e3904da998bedaec02a3b569fe67e.0 → 15.2.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,12 @@
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
- ## [15.1.1-canary.5642ce758b3e3904da998bedaec02a3b569fe67e.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@15.1.0...@ornikar/jest-config-react-native@15.1.1-canary.5642ce758b3e3904da998bedaec02a3b569fe67e.0) (2025-10-30)
6
+ ## [15.2.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@15.1.0...@ornikar/jest-config-react-native@15.2.0) (2025-11-13)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * remove sucrase ([5642ce7](https://github.com/ornikar/shared-configs/commit/5642ce758b3e3904da998bedaec02a3b569fe67e))
12
- * remove sucrase usage ([4e1a093](https://github.com/ornikar/shared-configs/commit/4e1a0935394b4d2ac4a0eebe39b6f1f87296173b))
11
+ * **jest-config-react-native:** remove sucrase OSE-19637 ([#1134](https://github.com/ornikar/shared-configs/issues/1134)) ([e35dc36](https://github.com/ornikar/shared-configs/commit/e35dc360588b09ad67e7fccca8d42c2c9fb27922))
13
12
 
14
13
 
15
14
 
@@ -10,8 +10,9 @@ exports.customTransforms = {
10
10
  './transformers/babel-transformer-ornikar-packages.js',
11
11
  ),
12
12
 
13
- // compilation of problematic node_modules has a simpler babel config
14
- 'node_modules/(react-native-(calendars|reanimated)|@react-native-community/netinfo|@react-native/virtualized-lists)/.*\\.(js|jsx|ts|tsx)$':
13
+ // The default Expo babel preset is not applied as we have our own babel config
14
+ // See https://github.com/expo/expo/blob/sdk-52/packages/jest-expo/src/resolveBabelConfig.js
15
+ 'node_modules/(expo|expo-.*|@expo.*|react-native|react-native-(calendars|reanimated)|@react-native-community/netinfo|@react-native/virtualized-lists)/.*\\.(js|jsx|ts|tsx)$':
15
16
  require.resolve('./transformers/babel-transformer-node-modules.js'),
16
17
 
17
18
  // dont transform node_modules when already compiled
@@ -19,9 +20,6 @@ exports.customTransforms = {
19
20
  './transformers/identity-transformer.js',
20
21
  ),
21
22
 
22
- // The default Expo babel preset is not applied as we have our own babel config
23
- // See https://github.com/expo/expo/blob/sdk-52/packages/jest-expo/src/resolveBabelConfig.js
24
- 'node_modules/(expo|expo-.*|@expo.*|react-native)/.*\\.(js|jsx|ts|tsx)$': require.resolve(
25
- './transformers/babel-transformer-node-modules.js',
26
- ),
23
+ // compilation of rest node_modules with sucrase
24
+ 'node_modules.*\\.(js|jsx|ts|tsx)$': '@sucrase/jest-plugin',
27
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "15.1.1-canary.5642ce758b3e3904da998bedaec02a3b569fe67e.0",
3
+ "version": "15.2.0",
4
4
  "description": "✅⚛️📱 jest config for react-native",
5
5
  "repository": {
6
6
  "directory": "@ornikar/jest-config-react-native",
@@ -43,7 +43,9 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@ornikar/jest-config-react": "17.0.0"
46
+ "@ornikar/jest-config-react": "17.0.0",
47
+ "@sucrase/jest-plugin": "^3.0.0",
48
+ "sucrase": "^3.34.0"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@testing-library/react-native": "12.9.0",