-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.base.js
38 lines (38 loc) · 904 Bytes
/
jest.base.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
module.exports = {
config: {
preset: "ts-jest",
resetMocks: true,
testPathIgnorePatterns: [
"/node_modules/",
"/dist/",
"/build/",
"/storybook-static/",
"/__generated__/",
],
collectCoverageFrom: [
"**/src/**/*.{ts,tsx}",
"!**/*.graphql.ts",
"!**/node_modules/**",
"!./tools/**/*",
"!**/stories/**",
"!**/__generated__/**",
"!**/test/**",
"!**/test-utils.*",
"!**/dist/**",
"!**/build/**",
"!**/mocks/**",
"!**/*.d.ts",
"!**/.storybook/**",
// The boostrap worker files are not possible
// to compile due to `import.meta.url`
"!**/src/workers/*.bootstrap.{ts,tsx}",
],
modulePathIgnorePatterns: [
"<rootDir>/e2e/",
"<rootDir>/build/",
"<rootDir>/dist/",
"<rootDir>/.*/__mocks__",
],
testEnvironment: "node",
},
};