Fork Horse repository, listed by its owner. Publisher snapshot.

packages/forkhorse-mcp/vitest.config.ts

Snapshot at 34e3175

Containing directory

926 bytes · typescriptView raw
1import { cloudflareTest } from "@cloudflare/vitest-plugin";
2import { defineConfig } from "vitest/config";
3
4export default defineConfig({
5  test: {
6    projects: [
7      {
8        resolve: {
9          alias: {
10            "cloudflare:workers": new URL("./__tests__/runtime.ts", import.meta.url).pathname,
11          },
12        },
13        test: {
14          name: "node",
15          include: ["__tests__/*.test.ts"],
16          server: { deps: { inline: ["@cloudflare/workers-oauth-provider"] } },
17        },
18      },
19      {
20        plugins: [
21          cloudflareTest({
22            main: "./__tests__/workerd/worker.ts",
23            miniflare: {
24              compatibilityDate: "2026-10-11",
25              compatibilityFlags: ["nodejs_compat"],
26              kvNamespaces: ["OAUTH_KV"],
27            },
28          }),
29        ],
30        test: { name: "workerd", include: ["__tests__/workerd/*.test.ts"] },
31      },
32    ],
33  },
34});
35