Skip to content

Commit 83e2cf0

Browse files
author
Adam Miskiewicz
committed
Fix tests in examples
1 parent de6396f commit 83e2cf0

File tree

4 files changed

+367
-1214
lines changed

4 files changed

+367
-1214
lines changed

examples/NavigationPlayground/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"version": "0.1.0",
44
"private": true,
55
"devDependencies": {
6-
"react-native-scripts": "0.0.29",
6+
"babel-jest": "^20.0.1",
7+
"jest": "^20.0.1",
78
"jest-expo": "^0.4.0",
8-
"react-test-renderer": "16.0.0-alpha.6"
9+
"react-navigation": "file:../..",
10+
"react-test-renderer": "15.5.4"
911
},
1012
"main": "./examples/node_modules/react-native-scripts/build/bin/crna-entry.js",
1113
"scripts": {
@@ -18,14 +20,16 @@
1820
"dependencies": {
1921
"expo": "^16.0.0",
2022
"react": "16.0.0-alpha.6",
21-
"react-native": "^0.43.4",
22-
"react-navigation": "file:../.."
23+
"react-native": "^0.43.4"
2324
},
2425
"jest": {
2526
"preset": "jest-expo",
27+
"modulePathIgnorePatterns": [
28+
"/node_modules\/.*\/react-native/",
29+
"/node_modules\/.*\/react/"
30+
],
2631
"transformIgnorePatterns": [
27-
"node_modules/(?!react-native|react-navigation)/",
28-
"examples/ReduxExample/"
32+
"/node_modules\/(?!react-native|react-navigation)/"
2933
]
3034
}
3135
}

0 commit comments

Comments
 (0)