-
Notifications
You must be signed in to change notification settings - Fork 284
/
jest.config.js
41 lines (41 loc) · 1.19 KB
/
jest.config.js
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
40
41
module.exports = {
testEnvironment: "node",
bail: false,
verbose: true,
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testMatch: ["**/*.test.ts"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleNameMapper: {
"@packages/(.*)$": "<rootDir>/packages/$1",
"@tests/(.*)$": "<rootDir>/__tests__/$1",
},
collectCoverage: false,
coverageDirectory: "<rootDir>/.coverage",
collectCoverageFrom: [
"packages/**/src/**/{!(index|manager|defaults),}.ts",
"!packages/**/src/**/contracts/**",
"!packages/**/src/**/enums/**",
"!packages/**/src/**/exceptions/**",
"packages/crypto/**/src/**",
"!packages/crypto/**/src/networks/**",
"!**/node_modules/**",
],
coverageReporters: ["json", "lcov", "text", "clover", "html"],
// coverageThreshold: {
// global: {
// branches: 100,
// functions: 100,
// lines: 100,
// statements: 100,
// },
// },
watchman: false,
setupFilesAfterEnv: ["jest-extended"],
globals: {
"ts-jest": {
tsConfig: "tsconfig.test.json",
},
},
};