-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (26 loc) · 832 Bytes
/
jest.config.js
File metadata and controls
27 lines (26 loc) · 832 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
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// The test environment that will be used for testing
testEnvironment: 'jsdom',
transform: {
'^.+\\.(js|ts)$': 'babel-jest',
'^.+\\.(css|scss)$': 'jest-css-modules-transform',
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/assetsTransformer.js',
'\\.(scss|css|less)$': '<rootDir>/assetsTransformer.js',
},
setupFiles: ['<rootDir>/.jest/setEnvVars'],
setupFilesAfterEnv: ['<rootDir>/.jest/setupTests.js'],
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/utilities/**', '<rootDir>/components/**'],
coverageThreshold: {
global: {
lines: 85,
},
},
};