-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.js
More file actions
32 lines (31 loc) · 741 Bytes
/
Copy pathjest.js
File metadata and controls
32 lines (31 loc) · 741 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
const transformIgnorePatterns = [
'/dist/',
'node_modules/[^/]+?/(?!(es|node_modules)/)',
];
module.exports = {
// verbose: true,
// logHeapUsage: true,
preset: 'ts-jest',
setupFiles: [
'<rootDir>/__jest__/raf_polyfill.js',
'<rootDir>/__jest__/setup.js',
],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__jest__/fileMock.js',
'\\.(css|scss|sass|less)$': 'identity-obj-proxy', // for css module
},
moduleFileExtensions: [
'js',
'jsx',
'json',
'ts',
'tsx',
],
snapshotSerializers: [
'enzyme-to-json/serializer',
],
transformIgnorePatterns,
transform: {
'^.+\\.([jt])sx?$': 'babel-jest',
},
};