-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathjest.config.js
24 lines (23 loc) · 1.11 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
const baseConfig = require("../../jest.config");
const package = require("./package.json");
/** @type {import("@jest/types").Config.InitialOptions} */
module.exports = {
...baseConfig,
// The directory where Jest should output its coverage files
coverageDirectory: "<rootDir>/coverage-firebase",
// Name should be displayed on Test Report
displayName: "Firebase Adapter",
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
moduleNameMapper: {
"@otjs/firebase-plaintext/(.*)": "<rootDir>/packages/firebase-plaintext/$1",
...baseConfig.moduleNameMapper,
},
// Run tests from one or more projects
projects: null,
// The root directory that Jest should scan for tests and modules within
rootDir: "../..",
// A list of paths to modules that run some code to configure or set up the testing framework before each test
setupFilesAfterEnv: [`<rootDir>/${package.rootDir}/__setup__/jest.setup.ts`],
// The glob patterns Jest uses to detect test files
testMatch: [`<rootDir>/${package.rootDir}/__tests__/*.[jt]s?(x)`],
};