-
-
Notifications
You must be signed in to change notification settings - Fork 351
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 621 Bytes
/
jest.config.js
File metadata and controls
24 lines (24 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
preset: "react-native",
modulePathIgnorePatterns: ["example", "docs", "assets", ".yarn", "lib"],
setupFilesAfterEnv: ["./test/jest-setup.js"],
coverageReporters: ["text", "lcov", "cobertura"],
collectCoverageFrom: [
"src/**/*.{ts,tsx}",
"!src/**/*.d.ts",
"!src/**/*.test.{ts,tsx}",
"!src/**/types.ts",
"!src/index.tsx",
],
coverageThreshold: {
global: {
branches: 50,
functions: 70,
lines: 70,
statements: 70,
},
},
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!(@react-native|react-native|@react-navigation))",
],
};