|
@@ -21,12 +21,12 @@
|
21
|
21
|
"scripts": {
|
22
|
22
|
"build": ":",
|
23
|
23
|
"lint": "eslint src2",
|
24
|
|
- "test:js": "jest --coverage",
|
|
24
|
+ "test:js": "BABEL_ENV=test jest --coverage",
|
25
|
25
|
"test:android": "cd android && ./gradlew clean testDebugUnitTest",
|
26
|
26
|
"test:ios": ":",
|
27
|
27
|
"pretest": "npm run lint",
|
28
|
28
|
"test": "npm run test:js && npm run test:android && npm run test:ios",
|
29
|
|
- "test:watch": "jest --coverage --watch",
|
|
29
|
+ "test:watch": "BABEL_ENV=test jest --coverage --watch",
|
30
|
30
|
"release": ": #npm version prerelease && npm publish --tag next && npm view react-native-navigation dist-tags && git push"
|
31
|
31
|
},
|
32
|
32
|
"peerDependencies": {
|
|
@@ -53,6 +53,15 @@
|
53
|
53
|
"jest-cli": "17.x.x",
|
54
|
54
|
"react-test-renderer": "15.4.1"
|
55
|
55
|
},
|
|
56
|
+ "babel": {
|
|
57
|
+ "env": {
|
|
58
|
+ "test": {
|
|
59
|
+ "presets": [
|
|
60
|
+ "react-native"
|
|
61
|
+ ]
|
|
62
|
+ }
|
|
63
|
+ }
|
|
64
|
+ },
|
56
|
65
|
"jest": {
|
57
|
66
|
"preset": "react-native",
|
58
|
67
|
"testPathDirs": [
|