vitest.config.ts
1import { cloudflareTest } from "@cloudflare/vitest-plugin";
2import { defineConfig } from "vitest/config";
3
4export default defineConfig({
5 plugins: [
6 cloudflareTest({
7 wrangler: { configPath: "./wrangler.jsonc" },
8 miniflare: {
9 bindings: {
10 ENDPOINTS: ["https://a.test/healthz", "https://b.test/healthz"],
11 AUTH_USER: "admin",
12 AUTH_PASS: "secret",
13 // Off unless a test enables it, whatever .dev.vars holds.
14 PUSHOVER_TOKEN: "",
15 PUSHOVER_USER: "",
16 },
17 },
18 }),
19 ],
20});