forked from webclipper/web-clipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
20 lines (20 loc) · 726 Bytes
/
Copy pathjest.config.js
File metadata and controls
20 lines (20 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module.exports = {
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy',
'^components/(.*)': '<rootDir>/src/components/$1',
'^common/(.*)': '<rootDir>/src/common/$1',
'^extensions/(.*)': '<rootDir>/src/extensions/$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'],
collectCoverage: true,
testEnvironment: 'node',
verbose: true,
};