History

Use Effect test helpers for background work fixtures

Rhys Sullivan committed 1 month ago

Commit b84cc201 parent cf077b62 files · +2 −3Browse files

Unified · Split

2 files
  1. apps/cloud/src/auth/workos-callback-state.node.test.ts +1 −2
  2. apps/cloud/test-stubs/cloudflare-workers.ts +1 −1
apps/cloud/src/auth/workos-callback-state.node.test.ts+1−2
@@ -10,8 +10,7 @@ · 9 unmodified lines
1010 // HTTP surface (see api.request-scope.node.test.ts).
1111 // ---------------------------------------------------------------------------
1212
13−import { afterAll, describe, expect, it } from "@effect/vitest";
14−import { vi } from "vitest";
13+import { afterAll, describe, expect, it, vi } from "@effect/vitest";
1514 import { waitUntil } from "cloudflare:workers";
1615 import { Effect, Layer } from "effect";
1716 import { HttpRouter, HttpServer } from "effect/unstable/http";
apps/cloud/test-stubs/cloudflare-workers.ts+1−1
@@ -7,7 +7,7 @@ · 6 unmodified lines
77 // from `process.env` into this stub at import time. Without this bridge
88 // the test DbService would dial the default postgres port instead of the
99 // PGlite socket server started by `scripts/test-globalsetup.ts`.
10−import { vi } from "vitest";
10+import { vi } from "@effect/vitest";
1111
1212 export const waitUntil = vi.fn<(work: Promise<unknown>) => void>();
1313