-
Notifications
You must be signed in to change notification settings - Fork 16
/
jest.config.js
41 lines (40 loc) · 898 Bytes
/
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
const config = {
testEnvironment: 'jsdom',
modulePaths: [
'<rootDir>'
],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': '<rootDir>/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js',
'(django)': '<rootDir>/__mocks__/djangoMock.js',
'react-flip-move': '<rootDir>/__mocks__/flipmoveMock.js'
},
testMatch: [
'**/*.jest.js',
'**/*.jest.jsx'
],
testPathIgnorePatterns: [
'venv/',
'node_modules/',
'build/'
],
collectCoverage: true,
collectCoverageFrom: [
'**/*.jsx',
'!**/coverage/**',
'!**/node_modules/**',
'!**/babel.config.js',
'!**/jest.setup.js',
'!**/chrome/**'
],
transform: {
'^.+\\.[t|j]sx?$': 'babel-jest'
},
transformIgnorePatterns: [
'node_modules/(?!(@?react-leaflet)/)'
],
setupFiles: [
'<rootDir>/setupTests.js'
]
}
module.exports = config