install vitest #3

This commit is contained in:
Michi 2025-11-02 20:20:17 +01:00
parent 1729766d06
commit 43580e1036
10 changed files with 2199 additions and 119 deletions

13
api/vitest.config.ts Normal file
View file

@ -0,0 +1,13 @@
import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config";
export default defineWorkersConfig({
test: {
globals: true,
// setupFiles: ['./tests/vitest.setup.ts'],
poolOptions: {
workers: {
wrangler: { configPath: "./wrangler.jsonc" },
},
},
},
});