@ornikar/jest-config-react-native 4.2.0-beta.3 → 4.2.2
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 +38 -0
- package/customTransforms.js +2 -2
- package/package.json +9 -3
- package/.vscode/settings.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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
|
+
## [4.2.2](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.2.1...@ornikar/jest-config-react-native@4.2.2) (2022-04-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ornikar/jest-config-react-native
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.2.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.2.0...@ornikar/jest-config-react-native@4.2.1) (2022-04-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @ornikar/jest-config-react-native
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [4.2.0](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.1.2...@ornikar/jest-config-react-native@4.2.0) (2022-03-31)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **jest-config-react-native:** use sucrase and transformers [no issue] ([#686](https://github.com/ornikar/shared-configs/issues/686)) ([2d67999](https://github.com/ornikar/shared-configs/commit/2d67999be78af0fec813592a6fff3d0d30e023c7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [4.1.2](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.1.1...@ornikar/jest-config-react-native@4.1.2) (2022-03-31)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **jest-config-react-native:** mark @testing-library/react-native as optional ([5dc0651](https://github.com/ornikar/shared-configs/commit/5dc06517ead838b77133117afca31b678cc3cfc7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [4.1.1](https://github.com/ornikar/shared-configs/compare/@ornikar/jest-config-react-native@4.1.0...@ornikar/jest-config-react-native@4.1.1) (2022-03-29)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @ornikar/jest-config-react-native
|
package/customTransforms.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
exports.customTransforms = {
|
|
4
|
-
// compilation of problematic node_modules has a
|
|
4
|
+
// compilation of problematic node_modules has a simpler babel config
|
|
5
5
|
'node_modules/(react-native-(calendars|reanimated)|native-base|@react-native-community/netinfo)/.*\\.(js|jsx|ts|tsx)$':
|
|
6
6
|
require.resolve('./transformers/babel-transformer-node-modules.js'),
|
|
7
7
|
|
|
@@ -11,6 +11,6 @@ exports.customTransforms = {
|
|
|
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',
|
|
13
13
|
|
|
14
|
-
// compilation of rest node_modules has a
|
|
14
|
+
// compilation of rest node_modules has a simpler babel config (might be additional transformIgnorePatterns)
|
|
15
15
|
'node_modules.*\\.(js|jsx|ts|tsx)$': require.resolve('./transformers/babel-transformer-node-modules.js'),
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/jest-config-react-native",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "✅⚛️📱 jest config for react-native",
|
|
5
5
|
"repository": "ornikar/shared-configs",
|
|
6
6
|
"main": "jest-preset.js",
|
|
@@ -18,8 +18,13 @@
|
|
|
18
18
|
"react": "^17.0.0",
|
|
19
19
|
"react-dom": "^17.0.0"
|
|
20
20
|
},
|
|
21
|
+
"peerDependenciesMeta": {
|
|
22
|
+
"@testing-library/react-native": {
|
|
23
|
+
"optional": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
21
26
|
"dependencies": {
|
|
22
|
-
"@ornikar/jest-config-react": "^9.
|
|
27
|
+
"@ornikar/jest-config-react": "^9.6.1",
|
|
23
28
|
"@sucrase/jest-plugin": "^2.2.0"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
@@ -27,5 +32,6 @@
|
|
|
27
32
|
"@testing-library/react-native": "9.1.0",
|
|
28
33
|
"jest-expo": "44.0.1",
|
|
29
34
|
"react": "17.0.2"
|
|
30
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "48ba934054bbce6f4cb92b25538d5ebe3673469a"
|
|
31
37
|
}
|
package/.vscode/settings.json
DELETED