-
Notifications
You must be signed in to change notification settings - Fork 13
/
jest.config.js
26 lines (26 loc) · 712 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
preset: "react-native",
transform: {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"^.+\\.tsx?$": "ts-jest",
},
setupFiles: ["./src/__tests__/test-helper/setupTests.ts"],
setupTestFrameworkScriptFile: "<rootDir>/src/__tests__/test-helper/setupTestFrameworkScript.ts",
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
snapshotSerializers: ["enzyme-to-json/serializer"],
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
],
testPathIgnorePatterns: [
"/node_modules/",
"dist",
"/src/__tests__/test-helper"
],
coverageDirectory: "./coverage/",
collectCoverage: true
};