-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathjest.config.js
More file actions
46 lines (39 loc) · 863 Bytes
/
jest.config.js
File metadata and controls
46 lines (39 loc) · 863 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
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
// Test environment
testEnvironment: 'jsdom',
// Test file patterns
testMatch: [
'**/__tests__/**/*.js',
'**/?(*.)+(spec|test).js'
],
// Ignore patterns
testPathIgnorePatterns: [
'/node_modules/',
'/Courier_Prime/'
],
// Transform files with Babel
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
// Module file extensions
moduleFileExtensions: ['js', 'jsx', 'json', 'node'],
// Coverage configuration
collectCoverageFrom: [
'**/*.{js,jsx}',
'!**/node_modules/**',
'!**/coverage/**',
'!**/*.config.js',
'!gulpfile.js'
],
// Setup files after environment
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// Coverage threshold (fixed typo)
coverageThreshold: {
global: {
branches: 0,
functions: 0,
lines: 0,
statements: 0
}
}
};