-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
32 lines (32 loc) · 870 Bytes
/
jest.config.js
File metadata and controls
32 lines (32 loc) · 870 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
32
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
jsx: 'react-jsx',
module: 'commonjs',
target: 'es2018',
esModuleInterop: true,
allowSyntheticDefaultImports: true,
strict: true,
moduleResolution: 'node10',
ignoreDeprecations: '5.0',
lib: ['dom', 'dom.iterable', 'esnext'],
},
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testMatch: ['**/test/**/*.test.ts', '**/test/**/*.test.tsx'],
setupFiles: ['./test/setup.ts'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/index.ts',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'clover'],
};