-
Notifications
You must be signed in to change notification settings - Fork 100
/
jest.config.cjs
34 lines (34 loc) · 1.06 KB
/
jest.config.cjs
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
module.exports = {
collectCoverageFrom: [
"./src/**/*.ts",
"!./src/**/*.d.ts",
"!./src/**/*.stubs.ts",
"!./src/adapters/*.ts",
"!./src/api/*.ts",
"!./src/cli/main.ts",
"!./src/converters/editorConfigs/editorSettingsConverters.ts",
"!./src/converters/lintConfigs/rules/ruleConverters.ts",
"!./src/converters/lintConfigs/rules/ruleMergers.ts",
"!./src/index.ts",
],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
extensionsToTreatAsEsm: [".ts"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "node", "mjs", "cjs"],
moduleNameMapper: {
chalk: "chalk/source/index.js",
"#ansi-styles": "chalk/source/vendor/ansi-styles/index.js",
"#supports-color": "chalk/source/vendor/supports-color/index.js",
},
testRegex: "src(.*)\\.test\\.tsx?$",
testEnvironment: "node",
transform: {
"^.+\\.(t|j)s$": ["@swc/jest"],
},
};