-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
42 lines (42 loc) · 1.25 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
module.exports = {
rootDir: '.',
testEnvironment: 'jsdom',
verbose: true,
resetModules: true,
clearMocks: true,
silent: true,
testMatch: ['**/src/**/*.test.js'],
reporters: ['default', ['github-actions', { silent: false }], 'summary'],
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
collectCoverageFrom: ['src/**/*.js'],
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/.server',
'<rootDir>/.public',
'<rootDir>/src/__fixtures__',
'<rootDir>/test-helpers',
'<rootDir>/mock-api',
'<rootDir>/src/server/common/components',
'<rootDir>/src/server/common/helpers',
'<rootDir>/src/client/assets/javascripts',
'<rootDir>/src/common/helpers/redis-client.js',
'<rootDir>/src/config',
'<rootDir>/src/helpers',
'<rootDir>/src/server/router.js',
'<rootDir>/src/server/index.js',
'<rootDir>/test-helpers/component-helpers.js',
'<rootDir>/src/index.js',
'<rootDir>/src/indextest.js'
],
coverageDirectory: '<rootDir>/coverage',
collectCoverage: false,
coverageReporters: ['clover', 'json', 'text', 'lcov', 'text-summary']
// coverageThreshold: {
// global: {
// branches: 90,
// functions: 90,
// lines: 90,
// statements: 90
// }
// }
}