-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (39 loc) · 1018 Bytes
/
vitest.config.ts
File metadata and controls
41 lines (39 loc) · 1018 Bytes
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
import { defineConfig } from "vitest/config";
const PROD_URL = process.env.PROD_URL ?? "https://join.cloud";
const PROD_MCP_URL = process.env.PROD_MCP_URL ?? PROD_URL;
export default defineConfig({
test: {
projects: [
{
test: {
name: "local",
include: ["test/**/*.test.ts"],
exclude: ["test/e2e/**"],
globalSetup: ["test/setup.ts"],
testTimeout: 15000,
hookTimeout: 30000,
env: {
TEST_URL: "http://localhost:3111",
MCP_URL: "http://localhost:3112",
TEST_TARGET: "local",
},
},
},
{
test: {
name: "prod",
include: ["test/**/*.test.ts"],
exclude: ["test/e2e/**"],
testTimeout: 30000,
hookTimeout: 30000,
fileParallelism: false,
env: {
TEST_URL: PROD_URL,
MCP_URL: PROD_MCP_URL,
TEST_TARGET: "prod",
},
},
},
],
},
});