-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
28 lines (22 loc) · 878 Bytes
/
jest.config.ts
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
// Jest configuration file
export default {
// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ["src/**/*.{ts,tsx}"],
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
collectCoverage: true,
coverageDirectory: "coverage",
// A list of paths to directories that Jest should use to search for files in
moduleNameMapper: {
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
},
// A preset that is used as a base for Jest's configuration
testEnvironment: "jsdom",
// The glob patterns Jest uses to detect test files
transform: {
"^.+\\.(ts|tsx|js|jsx)$": "ts-jest",
},
// Indicates whether each individual test should be reported during the run
verbose: true,
};