-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
41 lines (36 loc) · 1004 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
39
40
41
import type { Config } from "@jest/types";
export const config: Config.InitialOptions = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/*.test.ts", "**/*.spec.ts"],
moduleDirectories: ["node_modules"],
forceExit: true,
testTimeout: 30 * 60 * 1000,
reporters: [
"default",
[
"jest-junit",
{
outputDirectory: "reports/jest-junit",
suiteName: "Integration Tests",
suiteNameTemplate: "{title}",
classNameTemplate: "{classname}",
titleTemplate: "{title}",
ancestorSeparator: " > ",
},
],
],
// A map from regular expressions to paths to transformers
transform: {
"^.+\\.(ts|tsx)?$": [
"ts-jest",
{
diagnostics: {
warnOnly: true,
},
},
],
},
verbose: true,
};
export default config;