forked from oct16/TimeCat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (21 loc) 路 809 Bytes
/
Copy pathjest.config.js
File metadata and controls
21 lines (21 loc) 路 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
preset: 'ts-jest',
rootDir: __dirname,
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
coverageDirectory: 'coverage',
coverageReporters: ['html', 'lcov', 'text'],
watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
// testRegex: '(/unit/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: {
'^@timecat/(.*?)$': '<rootDir>/packages/$1/src',
'packages/(.*)$': '<rootDir>/packages/$1'
},
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'],
testPathIgnorePatterns: process.env.SKIP_E2E ? ['/node_modules/', '/examples/__tests__'] : ['/node_modules/'],
verbose: true,
testEnvironment: 'jsdom',
setupFiles: ['<rootDir>/jest-setup.js']
}