Unified · Split
| @@ -10,8 +10,7 @@ · 9 unmodified lines | |||
| 10 | // HTTP surface (see api.request-scope.node.test.ts). | 10 | // HTTP surface (see api.request-scope.node.test.ts). |
| 11 | // --------------------------------------------------------------------------- | 11 | // --------------------------------------------------------------------------- |
| 12 | 12 | ||
| 13 | import { afterAll, describe, expect, it } from "@effect/vitest"; | 13 | import { afterAll, describe, expect, it, vi } from "@effect/vitest"; |
| 14 | import { vi } from "vitest"; | ||
| 15 | import { waitUntil } from "cloudflare:workers"; | 14 | import { waitUntil } from "cloudflare:workers"; |
| 16 | import { Effect, Layer } from "effect"; | 15 | import { Effect, Layer } from "effect"; |
| 17 | import { HttpRouter, HttpServer } from "effect/unstable/http"; | 16 | import { HttpRouter, HttpServer } from "effect/unstable/http"; |
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | // from `process.env` into this stub at import time. Without this bridge | 7 | // from `process.env` into this stub at import time. Without this bridge |
| 8 | // the test DbService would dial the default postgres port instead of the | 8 | // the test DbService would dial the default postgres port instead of the |
| 9 | // PGlite socket server started by `scripts/test-globalsetup.ts`. | 9 | // PGlite socket server started by `scripts/test-globalsetup.ts`. |
| 10 | import { vi } from "vitest"; | 10 | import { vi } from "@effect/vitest"; |
| 11 | 11 | ||
| 12 | export const waitUntil = vi.fn<(work: Promise<unknown>) => void>(); | 12 | export const waitUntil = vi.fn<(work: Promise<unknown>) => void>(); |
| 13 | 13 | ||