forked from webclipper/web-clipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
21 lines (21 loc) · 825 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy',
'^components/(.*)': '<rootDir>/src/components/$1',
'^common/(.*)': '<rootDir>/src/common/$1',
'^extensions/(.*)': '<rootDir>/src/extensions/$1',
'@/service/(.*)': '<rootDir>/src/service/$1',
'@/__test__/(.*)': '<rootDir>/src/__test__/$1',
'^actions/(.*)': '<rootDir>/src/store/actions/$1',
},
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
collectCoverageFrom: ['src/**/**.ts', 'src/**/**.tsx'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['/lib/', '/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: 'node',
coverageReporters: ['json', 'html'],
};