cloud / internal-packages / cloud-clients / vitest.config.tsmain at aacbc74
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["src/**/*.test.ts"],
restoreMocks: true,
unstubGlobals: true,
chaiConfig: { truncateThreshold: 0 },
silent: "passed-only",
// the Worker imports `cloudflare:workers` for the Durable Object base class
alias: { "cloudflare:workers": new URL("./src/test-workers.ts", import.meta.url).pathname },
},
});