Fix tests in examples

This commit is contained in:
Adam Miskiewicz
2017-05-15 19:36:04 -07:00
parent de6396facd
commit 83e2cf007b
4 changed files with 357 additions and 1204 deletions

View File

@@ -3,9 +3,11 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"react-native-scripts": "0.0.29",
"babel-jest": "^20.0.1",
"jest": "^20.0.1",
"jest-expo": "^0.4.0",
"react-test-renderer": "16.0.0-alpha.6"
"react-navigation": "file:../..",
"react-test-renderer": "15.5.4"
},
"main": "./examples/node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
@@ -18,14 +20,16 @@
"dependencies": {
"expo": "^16.0.0",
"react": "16.0.0-alpha.6",
"react-native": "^0.43.4",
"react-navigation": "file:../.."
"react-native": "^0.43.4"
},
"jest": {
"preset": "jest-expo",
"modulePathIgnorePatterns": [
"/node_modules\/.*\/react-native/",
"/node_modules\/.*\/react/"
],
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-navigation)/",
"examples/ReduxExample/"
"/node_modules\/(?!react-native|react-navigation)/"
]
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -23,8 +23,12 @@
"setupFiles": [
"<rootDir>/../../jest-setup.js"
],
"modulePathIgnorePatterns": [
"/node_modules\/.*\/react-native/",
"/node_modules\/.*\/react/"
],
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-navigation)/"
"/node_modules\/(?!react-native|react-navigation)/"
]
}
}

View File

@@ -4,6 +4,6 @@ set -eo pipefail
case $CIRCLE_NODE_INDEX in
0) yarn test && yarn codecov ;;
1) cd examples/NavigationPlayground && yarn && yarn test ;;
1) yarn link && cd examples/NavigationPlayground && yarn && yarn link react-navigation && yarn test ;;
2) cd examples/ReduxExample && yarn && yarn test ;;
esac