-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
38 lines (35 loc) · 1 KB
/
jest.config.ts
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
33
34
35
36
37
38
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
import type { Config } from 'jest'
const config: Config = {
automock: false,
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['**/*.ts', '!**/*.d.ts', '!**/cdk.out/**', '!**/index.ts', '!jest.config.ts', '!**/types.ts'],
coverageDirectory: './coverage/',
coverageProvider: 'v8',
moduleFileExtensions: ['js', 'ts'],
preset: 'ts-jest',
reporters: [
'default',
[
'jest-junit',
{
ancestorSeparator: ' › ',
classNameTemplate: '{classname}',
outputDirectory: './coverage',
titleTemplate: '{title}',
uniqueOutputName: 'false',
usePathForSuiteName: 'true',
},
],
],
setupFilesAfterEnv: ['jest-extended', '<rootDir>/setup.js'],
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[t]s?(x)'],
transform: {
'^.+\\.(ts)$': 'ts-jest',
},
verbose: true,
}
export default config