-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (39 loc) · 1012 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
33
34
35
36
37
38
39
40
41
/* Copyright (c) 2024 Ubran Nest or its affiliates. All rights reserved. */
module.exports = {
preset: "@shelf/jest-mongodb",
clearMocks: false,
collectCoverage: true,
coverageDirectory: "coverage",
coverageProvider: "v8",
testEnvironment: 'node',
roots: ['<rootDir>/test'],
testMatch: ['**/*.spec.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
setupFiles: ['./jest.env.js'],
reporters: [
"default",
[
"jest-junit", {
outputName: "junit.xml",
ancestorSeparator: " › " ,
classNameTemplate: "{classname}",
titleTemplate: "{title}",
suiteNameTemplate: "{filename}"
}
]
],
testResultsProcessor: "./node_modules/jest-html-reporter",
mongodbMemoryServerOptions: {
binary: {
version: '4.0.3',
skipMD5: true,
},
instance: {
dbName: 'jest',
},
autoStart: false,
mongoURLEnvName: 'MONGODB_URI',
},
};