-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
jest.config.js
37 lines (37 loc) · 843 Bytes
/
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
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:prettier",
testPathIgnorePatterns: [
"/node_modules/",
"/src/__fixtures__/",
"/coverage/",
"/dist/",
],
},
{
runner: "eslint",
displayName: "lint:eslint",
testMatch: ["<rootDir>/src/**/*.ts"],
},
],
};