-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (20 loc) · 671 Bytes
/
jest.config.js
File metadata and controls
22 lines (20 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
moduleDirectories: ['node_modules'],
snapshotSerializers: ['jest-serializer-html'],
transform: {
'\\.(t|j)sx?$': 'ts-jest',
},
globals: {
'ts-jest': {
tsconfig: '<rootDir>/jest.tsconfig.json',
},
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/t/fileMock.js',
'\\.(s?css|less)$': '<rootDir>/t/styleMock.js',
electron: '<rootDir>/t/electron.js',
},
transformIgnorePatterns: ['node_modules/(?!(podlite' + '|@podlite' + '|entity-decode' + ')/)'],
setupFilesAfterEnv: ['<rootDir>/t/setupTests.js'],
modulePaths: ['<rootDir>'],
}