forked from bigcommerce/checkout-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.preset.js
More file actions
23 lines (22 loc) · 712 Bytes
/
Copy pathjest.preset.js
File metadata and controls
23 lines (22 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// eslint-disable-next-line import/no-internal-modules
const nxPreset = require('@nrwl/jest/preset');
module.exports = {
...nxPreset,
testPathIgnorePatterns: ['<rootDir>/e2e/'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
reporters: ['default', 'jest-junit'],
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'\\.(gif|png|jpe?g|svg)$': '../../scripts/jest/file-transformer',
'\\.scss$': '../../scripts/jest/style-transformer',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
snapshotSerializers: ['enzyme-to-json/serializer'],
};