-
-
Notifications
You must be signed in to change notification settings - Fork 228
/
jest.config.js
28 lines (27 loc) · 916 Bytes
/
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
module.exports = {
testTimeout: 1000,
projects: [
{
displayName: { name: "node", color: "magenta" },
testEnvironment: "node",
testPathIgnorePatterns: [
".jsdom.test.",
"<rootDir>/itsJustJavascript/db/tests",
"<rootDir>/itsJustJavascript/adminSiteServer/app.test.(jsx|js)",
"<rootDir>/.nx/cache/",
],
testMatch: ["**/*.test.(jsx|js)"],
},
{
displayName: { name: "jsdom", color: "cyan" },
testEnvironment: "jsdom",
testMatch: ["**/*.jsdom.test.(jsx|js)"],
testPathIgnorePatterns: ["<rootDir>/.nx/cache/"],
},
],
}
// special envs for tests
process.env = Object.assign(process.env, {
CATALOG_PATH: "https://owid-catalog.nyc3.digitaloceanspaces.com",
BAKED_BASE_URL: "http://localhost:3030",
})