-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
39 lines (36 loc) · 982 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
29
30
31
32
33
34
35
36
37
38
39
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("dotenv").config();
import type { Config } from "@jest/types";
const config: Config.InitialOptions = {
testEnvironment: "node",
clearMocks: true,
transform: {
"^.+\\.ts$": ["ts-jest", {
tsconfig: "tsconfig.jest.json",
isolatedModules: true
}]
},
testRegex: "test/.*.test.ts$",
moduleFileExtensions: ["ts", "js", "json", "node"],
moduleNameMapper: {
"^~src/(.*)": "<rootDir>/src/$1",
"^~test/(.*)": "<rootDir>/test/$1",
"^~resources/(.*)": "<rootDir>/resources/$1"
},
collectCoverage: true,
coverageDirectory: "coverage",
coverageReporters: [
"text",
"text-summary",
"json",
"lcov",
"clover"
],
collectCoverageFrom: [
"src/**/*.ts",
"!src/index.ts",
"!src/parsers/screwzira/**"
],
verbose: true
};
export default config;