-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathjest.config.cjs
More file actions
41 lines (41 loc) · 1.04 KB
/
jest.config.cjs
File metadata and controls
41 lines (41 loc) · 1.04 KB
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
module.exports = {
collectCoverageFrom: [
"src/**/*.{js,ts}",
"!*.js", // ignore all config .js files
"!**/*.d.ts",
"!build/**",
"!coverage/**",
"!dist/**",
"!examples/**",
],
verbose: true,
projects: ["<rootDir>"],
testMatch: [
"**/__tests__/**/*.[jt]s?(x)",
"**/test/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)",
"<rootDir>/src/**/*.test.(js|ts)",
],
testPathIgnorePatterns: [
"/(?:production_)?node_modules/",
".d.ts$",
"<rootDir>/test/fixtures",
"<rootDir>/test/helpers",
"__mocks__",
"/node_modules/",
"<rootDir>/tests/",
],
transform: {
"^.+\\.[jt]sx?$": ["ts-jest", { isolatedModules: true }],
},
resetMocks: true,
moduleDirectories: ["node_modules", "src"],
testEnvironmentOptions: { url: "http://localhost" },
moduleFileExtensions: ["js", "jsx", "json", "ts", "tsx"],
modulePathIgnorePatterns: ["/node_modules/"],
coveragePathIgnorePatterns: [
"<rootDir>/node_modules/",
"<rootDir>/src/__tests__",
"<rootDir>/src/main.ts",
],
};