Skip to content

Instantly share code, notes, and snippets.

@hdsenevi
Last active December 13, 2018 13:22
Show Gist options
  • Save hdsenevi/1f89e42e78c9c6c77ffe4b517c234bf4 to your computer and use it in GitHub Desktop.
Save hdsenevi/1f89e42e78c9c6c77ffe4b517c234bf4 to your computer and use it in GitHub Desktop.
Article helper gist for "Unit testing in React Native with Jest and Enzyme" (https://github.com/hdsenevi/react-native-unit-testing-recipes)
{
"preset": "react-native",
"collectCoverage": true,
"moduleDirectories": [
"node_modules",
"src"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
},
"setupFiles": [
"<rootDir>/jest/setup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native)"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/jest"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment