import { defineProject } from "vitest/config"; import { cloudflareTest } from "@cloudflare/vitest-plugin"; /** opt-in (`pnpm test:model`): calls Workers AI, which needs `wrangler login` and costs money */ export default defineProject({ plugins: [cloudflareTest({ wrangler: { configPath: "./wrangler.model-tests.jsonc" } })], test: { include: ["itest/**/*.test.ts"], testTimeout: 60_000, // what the model wrote, saved per run to itest-output/ (gitignored) reporters: ["default", "./itest/save-annotations.ts"], }, });