import { defineProject } from "vitest/config"; // the plugin resolves from diigo-bookmarks's store (the one vitest // install on disk); direct-path import sidesteps pnpm's exports-map // restriction *for the config file*. cloudflareTest (the plugin form, // not the bare pool) is what provides the `cloudflare:test` module. import { cloudflareTest } from "../diigo-bookmarks/node_modules/.pnpm/@cloudflare+vitest-plugin@1.3.6_@cloudflare+workers-types@5.20261005.1_@types+node@26.6.4_@vi_7mty7nznaeeyt2ohspxbzj4p6m/node_modules/@cloudflare/vitest-plugin/dist/pool/index.mjs"; export default defineProject({ plugins: [ cloudflareTest({ // the real worker + DOs; WEBAPP is a fake (aux workers must be JS) wrangler: { configPath: "./wrangler.tests.jsonc" }, miniflare: { workers: [ { name: "fake-webapp", modules: true, scriptPath: "./tests/fake-webapp.js", compatibilityDate: "2026-09-29", }, ], }, }), ], test: { include: ["tests/**/*.test.ts"], }, });