@ornikar/jest-config-react-native 9.1.1 → 9.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,6 +3,15 @@
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
+ ## [9.2.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@9.1.1...@ornikar/jest-config-react-native@9.2.0) (2023-11-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * add reanimated transform for ornikar packages on jest [no issue] ([#1043](https://github.com/ornikar/shared-configs/issues/1043)) ([366a518](https://github.com/ornikar/shared-configs/commit/366a518e534a6f24438bf2dd33396a5c1c22211f))
12
+
13
+
14
+
6
15
  ## [9.1.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@9.1.0...@ornikar/jest-config-react-native@9.1.1) (2023-11-21)
7
16
 
8
17
  **Note:** Version bump only for package @ornikar/jest-config-react-native
@@ -5,6 +5,9 @@
5
5
  */
6
6
 
7
7
  exports.customTransforms = {
8
+ // compilation of ornikar packages
9
+ 'node_modules/@ornikar/.*\\.(js|cjs|mjs)$': require.resolve('./transformers/babel-transformer-ornikar-packages.js'),
10
+
8
11
  // compilation of problematic node_modules has a simpler babel config
9
12
  'node_modules/(react-native-(calendars|reanimated)|@react-native-community/netinfo|@react-native/virtualized-lists)/.*\\.(js|jsx|ts|tsx)$':
10
13
  require.resolve('./transformers/babel-transformer-node-modules.js'),
package/jest-preset.js CHANGED
@@ -22,7 +22,7 @@ module.exports = {
22
22
  testEnvironmentOptions: expoPreset.testEnvironmentOptions || {},
23
23
  // override expo transformIgnorePatterns with custom config
24
24
  transformIgnorePatterns: [
25
- 'node_modules/(?!(react-native.*|@react-native.*|expo.*|@expo(nent)?/.*|react-navigation.*|@react-navigation/.*|native-base)/)',
25
+ 'node_modules/(?!(react-native.*|@react-native.*|expo.*|@expo(nent)?/.*|react-navigation.*|@react-navigation/.*|native-base|@ornikar/.*)/)',
26
26
  ],
27
27
  transform: {
28
28
  ...customTransforms,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/jest-config-react-native",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "✅⚛️📱 jest config for react-native",
5
5
  "repository": {
6
6
  "directory": "@ornikar/jest-config-react-native",
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // eslint-disable-next-line import/no-extraneous-dependencies
4
+ const babelJest = require('babel-jest').default;
5
+
6
+ module.exports = babelJest.createTransformer({
7
+ plugins: ['react-native-reanimated/plugin'],
8
+ babelrc: false,
9
+ configFile: false,
10
+ });