-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 836 Bytes
/
Copy pathjest.config.js
File metadata and controls
29 lines (29 loc) · 836 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
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
'\\.(svg|png|jpg|jpeg|gif)$': 'jest-transform-stub'
},
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {
tsconfig: 'tsconfig.test.json'
}],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.(ts|tsx|js)',
'<rootDir>/src/**/(*.)+(spec|test).(ts|tsx|js)'
],
collectCoverageFrom: [
'src/components/ChooseProject.tsx',
'src/components/ErrorAlert.tsx',
'src/components/Footer.tsx',
'src/components/Header.tsx',
'src/components/IssueRow.tsx',
'src/components/ListProjects.tsx',
'src/components/Loading.tsx'
],
watchman: false
};