-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (32 loc) · 835 Bytes
/
jest.config.js
File metadata and controls
34 lines (32 loc) · 835 Bytes
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
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
logHeapUsage: true,
transform: {
'^.+\\.[tj]s$': ['@swc/jest', {}],
},
moduleFileExtensions: ["js", "json", "ts"],
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
coverageReporters: [
"json-summary",
"text",
"lcov"
],
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.ts",
"!<rootDir>/node_modules/",
"!<rootDir>/dist/",
"!<rootDir>/src/index.ts",
"!<rootDir>/src/types/**",
"!<rootDir>/src/cli/generate-from-url.cli.ts",
"!<rootDir>/src/tests-related/**",
"!<rootDir>/src/logic/graphql/**",
"!<rootDir>/src/specs/**",
"!<rootDir>/src/api/**",
"!<rootDir>/src/temp/**",
],
modulePathIgnorePatterns: ['<rootDir>/dist']
};