forked from mercedes-benz/DnA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (31 loc) · 1.13 KB
/
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
module.exports = {
globals: {
'ts-jest': {
tsConfigFile: './packages/app/tsconfig.json',
},
__CONFIG__: 'local',
},
verbose: true,
testURL: 'http://localhost/',
clearMocks: true,
resetMocks: true,
collectCoverage: true,
collectCoverageFrom: ['**/app/src/components/**'],
coveragePathIgnorePatterns: ['.d.ts'],
testRegex: '(/test/.*)\\.(test|spec)\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/coverage/', '/webpack/'],
transformIgnorePatterns: ['/node_modules/', '/dist/', '/coverage/', '/webpack/'],
watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/coverage/', '/webpack/'],
setupFiles: ['./packages/app/.build/jest/enzymeSetup.js'],
snapshotSerializers: ['enzyme-to-json/serializer'],
setupTestFrameworkScriptFile: 'mock-local-storage',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jest'],
moduleNameMapper: {
'\\.(css|scss)$': 'identity-obj-proxy',
},
transform: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/packages/app/.build/jest/fileTransformer.js',
'^.+\\.(ts|tsx)$': 'ts-jest',
},
};