forked from ZingyAwesome/easylists-for-pihole
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.ts
More file actions
30 lines (28 loc) · 761 Bytes
/
jest.config.ts
File metadata and controls
30 lines (28 loc) · 761 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
import type { Config } from "@jest/types";
const config: Config.InitialOptions = {
clearMocks: true,
transform: {
"^.+\\.ts$": ["ts-jest", {
tsconfig: "tsconfig.json"
}]
},
testRegex: "(test|test-generated)/.*.test.ts$",
moduleFileExtensions: ["ts", "js", "json", "node"],
moduleNameMapper: {
"^~src/(.*)": "<rootDir>/src/$1",
"^~test/(.*)": "<rootDir>/test/$1",
"^~resources/(.*)": "<rootDir>/resources/$1"
},
verbose: true,
collectCoverage: true,
coverageDirectory: "coverage",
coverageReporters: [
"text",
"text-summary",
"json",
"lcov",
"clover"
],
collectCoverageFrom: ["src/**/*.ts"]
};
export default config;