-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
42 lines (42 loc) · 1.03 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
42
export default {
collectCoverage: true,
coverageReporters: ["json", "text"],
projects: [
{
preset: "ts-jest/presets/default-esm",
globals: {
"ts-jest": {
useESM: true,
},
},
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
collectCoverage: true,
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
coverageReporters: ["json", "text"],
displayName: "test",
},
{
preset: "./jest-preset.js",
runner: "./dist/index.js",
displayName: "lint:remark",
testPathIgnorePatterns: [
"/node_modules/",
"/dist/",
"/src/__fixtures__/",
],
},
{
preset: "jest-runner-prettier",
displayName: "lint:prettier",
testPathIgnorePatterns: ["/node_modules/", "/dist/", "/coverage/"],
},
{
runner: "eslint",
displayName: "lint:eslint",
testMatch: ["<rootDir>/src/**/*"],
testPathIgnorePatterns: ["/node_modules/", "/dist/", "/coverage/"],
},
],
};