forked from vintasoftware/django-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
41 lines (40 loc) · 784 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
'use strict';
module.exports = {
transform: {
'^.+\\.jsx$': 'babel-jest',
'^.+\\.js$': 'babel-jest',
},
moduleNameMapper: {
'^.+\\.(css|scss)$': 'identity-obj-proxy',
},
transformIgnorePatterns: [
'node_modules/*',
],
modulePaths: [
'frontend',
'frontend/js',
'frontend/js/app',
],
snapshotSerializers: [
'enzyme-to-json/serializer',
],
setupFiles: [
'./jest-setup.js',
],
collectCoverageFrom: [
'frontend/js/**/*.{js,jsx}',
],
coveragePathIgnorePatterns: [
'frontend/js/store.js',
'frontend/js/index.js',
'frontend/js/jquery-index.js',
'frontend/js/constants/*',
'frontend/js/pages/*',
'frontend/js/tests/*',
],
coverageThreshold: {
global: {
statements: 10,
},
},
};