-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (30 loc) · 810 Bytes
/
jest.config.js
File metadata and controls
31 lines (30 loc) · 810 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
30
31
import {kitchen} from 'alias-kitchen';
export default {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
// process `*.tsx` files with `ts-jest`
},
moduleNameMapper: {
...kitchen({recipe: 'jest'}),
'\\.(gif|ttf|eot|svg|png|jpg)$': 'identity-obj-proxy',
'\\.css$': 'identity-obj-proxy',
},
modulePathIgnorePatterns: ['<rootDir>/templates/'],
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
coverageReporters: [
[
'lcov',
{
projectRoot: '.',
},
],
],
collectCoverageFrom: [
'src/lib/**/*.ts',
'src/lib/**/*.tsx',
'!src/lib/**/index.ts',
'!**/node_modules/**',
],
};