-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
26 lines (25 loc) · 792 Bytes
/
jest.config.ts
File metadata and controls
26 lines (25 loc) · 792 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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
setupFilesAfterEnv: ['<rootDir>/__tests__/setup-tests.ts'],
transform: {
'^.+\\.ts?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.ts',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
clearMocks: true,
collectCoverage: false,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
preset: 'ts-jest',
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/__tests__/setup-tests.ts', 'dist', 'coverage'],
// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
};