forked from confused-Techie/atom-backend
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
jest.config.js
46 lines (45 loc) · 1.45 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const config = {
setupFilesAfterEnv: ["<rootDir>/tests/helpers/global.setup.jest.js"],
verbose: true,
collectCoverage: true,
coverageReporters: ["text", "clover"],
coveragePathIgnorePatterns: [
"<rootDir>/tests/",
"<rootDir>/test/",
"<rootDir>/node_modules/",
],
projects: [
{
displayName: "Full-Tests",
globalSetup: "<rootDir>/node_modules/@databases/pg-test/jest/globalSetup",
globalTeardown:
"<rootDir>/node_modules/@databases/pg-test/jest/globalTeardown",
setupFilesAfterEnv: [
"<rootDir>/tests/helpers/global.setup.jest.js",
"<rootDir>/tests/helpers/handlers.setup.jest.js",
],
testMatch: ["<rootDir>/tests/full/**.test.js"],
},
{
displayName: "Integration-Tests",
globalSetup: "<rootDir>/node_modules/@databases/pg-test/jest/globalSetup",
globalTeardown:
"<rootDir>/node_modules/@databases/pg-test/jest/globalTeardown",
setupFilesAfterEnv: [
"<rootDir>/tests/helpers/handlers.setup.jest.js",
"<rootDir>/tests/helpers/global.setup.jest.js",
],
testMatch: [
"<rootDir>/tests/database/**.test.js",
"<rootDir>/tests/http/**.test.js",
"<rootDir>/tests/vcs/**.test.js",
],
},
{
displayName: "Unit-Tests",
setupFilesAfterEnv: ["<rootDir>/tests/helpers/global.setup.jest.js"],
testMatch: ["<rootDir>/tests/unit/**/**.test.js"],
},
],
};
module.exports = config;