-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.ts
38 lines (29 loc) · 900 Bytes
/
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
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
displayName: 'Testsuite for SwagAppSystemPackage',
preset: 'ts-jest',
clearMocks: true,
restoreMocks: true,
collectCoverage: true,
coverageDirectory: '<rootDir>/artifacts',
collectCoverageFrom: [
'<rootDir>/src/**/*.ts'
],
coverageReporters: ['lcov', 'clover', 'cobertura'],
reporters: [
'default',
['jest-junit', {
suiteName: 'SwagAppSystemPackage Unit Tests',
outputDirectory: '<rootDir>/artifacts/',
outputName: 'swag-app-system-package.junit.xml'
}]
],
watchPathIgnorePatterns: ['node_modules'],
moduleNameMapper: {
'^@swag-app-system-package/(.*)': '<rootDir>/src/$1',
},
testMatch: [
'<rootDir>/tests/__test__/**/*.test.ts',
],
};
export default config;