forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
69 lines (69 loc) · 2.22 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
projects: [
{
displayName: "react",
testEnvironment: "jsdom",
testMatch: ["<rootDir>/packages/remix-react/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/packages/remix-react/__tests__/setupJest.js"]
},
{
displayName: "create-remix",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/create-remix/**/*-test.[jt]s?(x)"]
},
{
displayName: "dev",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-dev/**/*-test.[jt]s?(x)"]
},
{
displayName: "node",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-node/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
{
displayName: "server",
testEnvironment: "node",
testMatch: [
"<rootDir>/packages/remix-server-runtime/**/*-test.[jt]s?(x)"
],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
// Node Adapters
{
displayName: "architect",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-architect/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
{
displayName: "express",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-express/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
{
displayName: "netlify",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-netlify/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
{
displayName: "vercel",
testEnvironment: "node",
testMatch: ["<rootDir>/packages/remix-vercel/**/*-test.[jt]s?(x)"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
},
// Fixture Apps
{
displayName: "gists-app",
testEnvironment: "node",
testMatch: ["<rootDir>/fixtures/gists-app/**/*-test.[jt]s?(x)"],
globalSetup: "<rootDir>/fixtures/gists-app/jest/global-setup.js",
globalTeardown: "<rootDir>/fixtures/gists-app/jest/global-teardown.js",
setupFilesAfterEnv: ["<rootDir>/fixtures/gists-app/jest/setup.js"],
setupFiles: ["<rootDir>/jest/setupNodeGlobals.ts"]
}
]
};