forked from hasadna/open-bus-map-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
27 lines (27 loc) · 826 Bytes
/
jest.config.ts
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
export default {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
// process `*.tsx` files with `ts-jest`
},
moduleNameMapper: {
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/tests/mocks/fileMock.js',
'^.+\\.(css|less|scss)$': 'identity-obj-proxy',
},
testPathIgnorePatterns: [
'/node_modules/',
'/tests/', // Ignoring this folder since playwright tests are here
],
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'],
}