-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
35 lines (33 loc) · 788 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
import { recursive } from 'merge'
import mongo from '@shelf/jest-mongodb/jest-preset'
const config = recursive(mongo, {
roots: [
'<rootDir>/src/',
'<rootDir>/tests/',
],
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.[jt]s?(x)',
'!src/bin.ts',
'!src/**/*.d.ts',
'!src/interfaces/**/*.[jt]s?(x)',
'!src/template.ts',
],
coverageDirectory: 'coverage',
testMatch: [
'<rootDir>/tests/**/*.test.ts',
],
transform: {
'^.+\\.tsx?$': 'esbuild-jest',
},
testPathIgnorePatterns: [
'node_modules',
],
watchPathIgnorePatterns: [
'globalConfig',
],
})
export default config