-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
31 lines (31 loc) · 948 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
22
23
24
25
26
27
28
29
30
31
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>/__tests__/**/*.spec.[jt]s?(x)'],
testPathIgnorePatterns: ['/node_modules/'],
verbose: true,
testEnvironment: 'jsdom',
setupFiles: ['<rootDir>/jest-setup.js'],
globals: {
'ts-jest': {
tsconfig: {
lib: ['ES2019'],
module: 'commonjs',
target: 'ES2019'
}
}
},
testTimeout: 30000
}