-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (34 loc) · 779 Bytes
/
jest.config.js
File metadata and controls
35 lines (34 loc) · 779 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
35
const { defaults: tsjPreset } = require("ts-jest/presets");
module.exports = {
preset: "ts-jest",
moduleFileExtensions: ["ts", "js", "json"],
transform: {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
tsconfig: "tsconfig.json",
diagnostics: false,
},
],
...tsjPreset.transform,
},
testPathIgnorePatterns: ["dist"],
testMatch: ["**/__tests__/**/*.test.(ts|js)"],
testEnvironment: "node",
moduleNameMapper: {
"@/(.*)": "<rootDir>/src/$1",
},
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
coverageThreshold: {
global: {
branches: 1,
functions: 1,
lines: 1,
statements: 1,
},
},
coverageReporters: ["json", "lcov", "text", "clover"],
};