-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 942 Bytes
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 942 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
25
26
27
28
29
30
31
32
33
34
/**
* Via either an Environment Variable or different config that is set we will do testing on Boilerplate and Integration
*/
module.exports = {
testMatch: [
"<rootDir>/src/**/*.test.{js,ts}",
"<rootDir>/test/**/*.test.{js,ts}",
"<rootDir>/boilerplate/app/state/**/*.test.{js,ts}",
"<rootDir>/boilerplate/app/theme/**/*.test.{js,ts}",
"<rootDir>/boilerplate/app/theming/**/*.test.{js,ts}",
],
collectCoverageFrom: [
"src/**/*.{ts,tsx,js,jsx}",
"!**/node_modules/**",
"!**/coverage/**",
"!**/dist/**",
],
testPathIgnorePatterns: ["/test/generators-integration.test.ts", "/node_modules"],
testEnvironment: "node",
transform: {
"^.+\\.ts$": "ts-jest",
"^.+\\.tsx$": "ts-jest",
},
coverageThreshold: {
global: {
statements: 40,
branches: 31,
functions: 45,
lines: 40,
},
},
clearMocks: true,
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
}