forked from neo4j/graphql
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.base.js
28 lines (25 loc) · 914 Bytes
/
jest.config.base.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
const path = require("path");
require("dotenv").config({ path: path.join(__dirname, ".env") });
module.exports = {
globalSetup: path.join(__dirname, "jest.global-setup.js"),
rootDir: __dirname,
verbose: true,
transform: {
"^.+\\.ts$": "ts-jest",
},
// Windows builds are incredibly slow, and filesystem operations tend
// to take that long.
testTimeout: 120000,
testMatch: [`./**/*.test.ts`],
moduleFileExtensions: ["js", "json", "jsx", "ts", "tsx", "node", "md"],
moduleNameMapper: {
"@neo4j/graphql/dist/types": "<rootDir>/packages/graphql/src/types",
"@neo4j/introspector(.*)$": "<rootDir>/packages/introspector/src/$1",
"@neo4j/graphql(.*)$": "<rootDir>/packages/graphql/src/$1",
},
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
prettierPath: require.resolve("prettier-2"),
};