@ornikar/jest-config-react-native 4.2.0-beta.2 → 4.2.0-beta.3
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/customTransforms.js +1 -1
- package/jest-preset.js +1 -1
- package/package.json +1 -1
package/customTransforms.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.customTransforms = {
|
|
|
6
6
|
require.resolve('./transformers/babel-transformer-node-modules.js'),
|
|
7
7
|
|
|
8
8
|
// dont transform node_modules when already compiled
|
|
9
|
-
'node_modules/.*/commonjs/.*\\.
|
|
9
|
+
'node_modules/.*/(commonjs|dist/cjs)/.*\\.js$': require.resolve('./transformers/identity-transformer.js'),
|
|
10
10
|
|
|
11
11
|
// compilation of most node_modules with sucrase for faster setup
|
|
12
12
|
'node_modules/(@?react-native.*|@?expo.*|@?react-navigation.*)/.*\\.(js|jsx|ts|tsx)$': '@sucrase/jest-plugin',
|
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
|
|
22
|
+
'node_modules/(?!react-native|@react-native|expo|@expo(nent)?/.*|react-navigation|@react-navigation/.*|native-base)',
|
|
23
23
|
],
|
|
24
24
|
transform: {
|
|
25
25
|
...customTransforms,
|