-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
39 lines (31 loc) · 1.1 KB
/
jest.config.ts
File metadata and controls
39 lines (31 loc) · 1.1 KB
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
35
36
37
38
39
module.exports = {
// The root directory of your project.
rootDir: __dirname,
// The test environment that will be used.
testEnvironment: "node",
roots: ["./src"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
tsconfig: "tsconfig.json",
},
],
},
//testRegex: "(/__tests__/.*|(.|/)(test|spec)).tsx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
// The test files that should be run.
testMatch: ["**/__tests__/**/*.ts"],
// The reporters that should be used.
reporters: ["default"],
// The coverage reporter that should be used.
coverageReporters: ["json", "lcov"],
// The path to the coverage report file.
coveragePathIgnorePatterns: ["/node_modules/", "/__tests__/"],
// The maximum number of test files that should be run in parallel.
//maxWorkers: 1,
// The number of milliseconds to wait before killing a test that is running too long.
testTimeout: 10000,
// A list of paths to modules that run some code to configure or set up the testing framework before each test.
//setupFilesAfterEnv: ["./jest.setup.ts"],
};