-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (40 loc) · 1.25 KB
/
Copy pathvitest.config.ts
File metadata and controls
41 lines (40 loc) · 1.25 KB
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 { cloudflareTest } from "@cloudflare/vitest-pool-workers";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [
cloudflareTest({
wrangler: { configPath: "./wrangler.test.jsonc" },
miniflare: {
bindings: {
ALLOW_UNAUTHENTICATED_DEV: "true",
CF_ACCESS_AUD: "test-audience",
CF_ACCESS_TEAM_DOMAIN: "https://example.cloudflareaccess.com",
DEFAULT_MODEL: "claude-test",
OPENCODE_BASE_URL: "https://mock-opencode.example/v1",
AI_GATEWAY_BASE_URL: "https://mock-ai-gateway.example/v1",
OPENCODE_GATEWAY_TOKEN: "opencode-token",
AI_GATEWAY_KEY: "ai-gateway-key",
DODO_MCP_TOKEN: "test-mcp-token",
DODO_VERSION: "0.3.0-test",
NTFY_TOPIC: "",
SECRETS_MASTER_KEY:
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
ADMIN_EMAIL: "admin@test.local",
COOKIE_SECRET:
"abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789",
},
},
}),
],
test: {
include: ["test/**/*.test.ts"],
testTimeout: 10000,
deps: {
optimizer: {
ssr: {
include: ["ajv"],
},
},
},
},
});