1import { defineConfig } from "vitest/config";2import { cloudflareTest } from "@cloudflare/vitest-pool-workers";34// Two projects: pure functions on node, and the Durable Object tests inside5// workerd with isolated storage per test. The black-box conformance suite6// has its own config, since it needs a running relay.7export default defineConfig({8 test: {9 projects: [10 { test: { name: "unit", include: ["test/unit/*.test.ts"], environment: "node" } },11 {12 plugins: [13 cloudflareTest({14 wrangler: { configPath: "./wrangler.jsonc" },15 // A fake lightning provider for the fuel tests (see test/object/fuel.test.ts).16 miniflare: { bindings: { LIGHTNING_ADDRESS: "fuel@ln.test", SERVICE_PUBKEY: "ab".repeat(32) } },17 }),18 ],19 test: { name: "object", include: ["test/object/*.test.ts"], testTimeout: 30_000 },20 },21 ],22 },23});