-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
50 lines (50 loc) · 1.19 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
43
44
45
46
47
48
49
50
const { pathsToModuleNameMapper } = require("ts-jest/utils");
const { compilerOptions } = require("./tsconfig.base.json");
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
"./packages/cli/src/**",
"./packages/core/src/**",
"./packages/compiler/src/**",
"./packages/plugins/**/src/**",
"./packages/helpers/**/src/**",
"./packages/misc/artist-ui/src/**",
],
coverageDirectory: "coverage",
coveragePathIgnorePatterns: [
"/node_modules/",
"/fixtures/",
"/.history/",
"types",
"docs",
"templates",
"packages/plugins/lesy-plugin-demo",
],
globals: {
"ts-jest": {
tsConfig: "./tsconfig.base.json",
diagnostics: false,
},
},
moduleFileExtensions: ["js", "ts", "tsx", "json"],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>/packages/",
}),
preset: "ts-jest",
resetModules: true,
testEnvironment: "node",
testMatch: [
// "**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[tj]s?(x)",
],
testPathIgnorePatterns: [
"/node_modules/",
"/fixtures/",
"/.history/",
"types",
"docs",
"templates",
"pilot-ui",
],
verbose: true,
};