-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
32 lines (32 loc) · 913 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
32
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
verbose: true,
roots: ['<rootDir>/packages'],
preset: 'ts-jest',
transform: {
'^.+\\.(js|ts)$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.test.json',
},
],
},
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
coverageProvider: 'v8',
reporters: ['jest-junit', 'default'],
coverageReporters: ['cobertura', 'html', 'lcov'],
coverageDirectory: 'coverage',
setupFiles: ['./jest-setup.js'],
collectCoverageFrom: [
'packages/**/src/**/*.{js,ts}',
'!packages/examples/**/*',
'!packages/httpclient/src/examples/**/*',
'!packages/httpclient-axios/src/examples/**/*',
],
testPathIgnorePatterns: ['/out/', '/node_modules/'],
modulePaths: ['<rootDir>/packages/'],
moduleNameMapper: {
'^@seriouslag/(.*)$': ['<rootDir>/packages/$1/src/'],
},
};