| 1 | import { defineConfig } from "vitest/config"; |
| 2 | |
| 3 | // Plain Node vitest, matching `web/`'s style — no workers pool, no miniflare. |
| 4 | // The handler is an ordinary `fetch(request, env)` function over standard |
| 5 | // `Request`/`Response`, and every binding it touches is an interface the tests |
| 6 | // stub. That keeps the IP guard in `test/no-ip.test.ts` meaningful: there is no |
| 7 | // runtime shim between the assertion and the source that ships. |
| 8 | export default defineConfig({ |
| 9 | test: { |
| 10 | include: ["test/**/*.test.ts"], |
| 11 | }, |
| 12 | }); |
| 13 |