-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) · 867 Bytes
/
jest.config.js
File metadata and controls
30 lines (30 loc) · 867 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
module.exports = {
verbose: true,
testEnvironment: 'node',
coverageReporters: ['json-summary', 'lcov'],
testPathIgnorePatterns: ['/frontend/'],
setupFiles: ['./jest.init.js'],
testMatch: [
'**/test/**/*.spec.[jt]s?(x)',
'!**/test/global/**/*.[jt]s?(x)'
],
moduleFileExtensions: ['js', 'json'],
transform: {},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1'
},
coverageDirectory: './coverage',
collectCoverage: true,
collectCoverageFrom: [
'**/*.js', // Adjust this pattern to include the files you want to be covered
'!**/node_modules/**',
'!**/test/**',
'!**/jest.config.js',
'!**/index.js',
"!**/coverage/**",
"!**/coverage_output.js/**",
"!**/coverage_output.json/**",
"!**/start-dev.js"
],
bail: true
};