Skip to content

Commit b84cc20

Browse files
committed
Use Effect test helpers for background work fixtures
1 parent cf077b6 commit b84cc20

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/cloud/src/auth/workos-callback-state.node.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

0 commit comments

Comments
 (0)