-
-
Save sstur/a9204e24b9ffb1a5ee0e6c7b7465202e to your computer and use it in GitHub Desktop.
Jest configuration for RN with expo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jest": { | |
"preset": "jest-expo", | |
"transform": { | |
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js", | |
"^.+\\.tsx?$": "ts-jest" | |
}, | |
"testMatch": [ | |
"**/__tests__/**/*.ts?(x)", | |
"**/?(*.)+(spec|test).ts?(x)" | |
], | |
"testPathIgnorePatterns": [ | |
"<rootDir>/node_modules/" | |
], | |
"moduleFileExtensions": [ | |
"ts", | |
"tsx", | |
"js", | |
"jsx", | |
"json", | |
"ios.ts", | |
"ios.tsx", | |
"android.ts", | |
"android.tsx" | |
], | |
"globals": { | |
"ts-jest": { | |
"tsConfig": { | |
"jsx": "react", | |
"esModuleInterop": true | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment