forked from MichalLytek/type-graphql
-
Notifications
You must be signed in to change notification settings - Fork 12
/
jest.config.ts
41 lines (39 loc) · 1.06 KB
/
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";
const config: Config.InitialOptions = {
verbose: false,
testEnvironment: "node",
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
"^.+\\.tsx?$": [
"ts-jest",
{
// ts-jest configuration goes here
tsconfig: "<rootDir>/tests/tsconfig.json",
},
],
},
testMatch: ["<rootDir>/tests/**/*.ts"],
testPathIgnorePatterns: [
"<rootDir>/tests/helpers",
"<rootDir>/tests/artifacts",
"<rootDir>/tests/.*integration.*",
],
rootDir: "./",
collectCoverage: false,
coverageDirectory: "<rootDir>/coverage",
collectCoverageFrom: ["<rootDir>/src/**/*.ts", "!<rootDir>/src/**/*.d.ts"],
modulePathIgnorePatterns: [
"<rootDir>/experiments",
"<rootDir>/lib",
"<rootDir>/package",
"<rootDir>/tests/artifacts",
],
testTimeout: 10000,
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
prettierPath: require.resolve("prettier-2"),
};
export default config;