Skip to content

Commit

Permalink
Apply @cpojer's suggested jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitley committed Mar 6, 2016
1 parent 6f0cd61 commit db61b6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
"test": "jest"
},
"dependencies": {
"react-native": "^0.21.0"
},
"devDependencies": {
"babel-jest": "^9.0.1",
"babel-preset-react-native": "^1.5.1",
"jest-cli": "^0.9.0"
},
"jest": {
"scriptPreprocessor": "node_modules/react-native/jestSupport/preprocessor.js",
"setupEnvScriptFile": "node_modules/react-native/jestSupport/env.js",
"testPathIgnorePatterns": [
"/node_modules/",
"packager/react-packager/src/Activity/"
],
"testFileExtensions": [ "js" ],
"testFileExtensions": [
"js"
],
"unmockedModulePathPatterns": [
"promise",
"source-map"
Expand Down

0 comments on commit db61b6d

Please sign in to comment.