-
Notifications
You must be signed in to change notification settings - Fork 401
/
Copy pathjest.config.js
32 lines (32 loc) · 1.09 KB
/
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
module.exports = {
rootDir: "./",
preset: "ts-jest",
testMatch: ["**/__tests__/*.test.ts"],
globals: {
"ts-jest": {
tsConfig: "<rootDir>/__tests__/tsconfig.json",
},
},
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
testEnvironment: "node",
testPathIgnorePatterns: ["e2e"],
moduleNameMapper: {
"firebase-admin/app": "<rootDir>/node_modules/firebase-admin/lib/app",
"firebase-admin/eventarc":
"<rootDir>/node_modules/firebase-admin/lib/eventarc",
"firebase-admin/database":
"<rootDir>/node_modules/firebase-admin/lib/database",
"firebase-admin/auth": "<rootDir>/node_modules/firebase-admin/lib/auth",
"firebase-functions/encoder":
"<rootDir>/node_modules/firebase-functions/lib/encoder",
"firebase-admin/database":
"<rootDir>/node_modules/firebase-admin/lib/database",
"firebase-functions/lib/encoder":
"<rootDir>/node_modules/firebase-functions-test/lib/providers/firestore.js",
"firebase-admin/firestore":
"<rootDir>/node_modules/firebase-functions/lib/v1/providers/firestore.js",
},
};