forked from hasadna/open-bus-map-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
23 lines (23 loc) · 716 Bytes
/
Copy pathjest.config.cjs
File metadata and controls
23 lines (23 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleNameMapper: {
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/tests/mocks/fileMock.js',
'^.+\\.(css|less|scss)$': 'identity-obj-proxy',
},
testPathIgnorePatterns: ['/node_modules/', '/tests/'],
collectCoverageFrom: [
'**/src/**/*.{js,jsx,ts,tsx}',
'!**/src/svgLoader.d.ts',
'!**/src/{test_pages,complaint}/**',
'!**/src/pages/DataResearch/**',
'!**/src/pages/homepage/**',
'!**/src/**/{setupProxy,log}.{ts,tsx}',
'!**/*.{test,spec,config,stories}.*',
],
modulePaths: ['<rootDir>'],
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
}