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

14
api/tests/tsconfig.json Normal file
View file

@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"moduleResolution": "bundler",
"types": [
"@cloudflare/vitest-pool-workers", // provides `cloudflare:test` types
"vitest/globals"
],
},
"include": [
"./**/*.ts",
"../worker-configuration.d.ts", // output of `wrangler types`
],
}