From 59383aad4d02228d4e8274fbe3e99f89e3babdee Mon Sep 17 00:00:00 2001 From: Michael Johnston Date: Sun, 13 Sep 2026 12:19:16 -0700 Subject: [PATCH] test(lastcode): canonicalize usage fixture paths Carry-Group: incubator Carry-Observation: Source discovery canonicalizes home paths; fixture assertions and scan signals must use the same path identity on macOS. --- apps/server/src/usage/UsageService.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/usage/UsageService.test.ts b/apps/server/src/usage/UsageService.test.ts index 27c3a3ff3efe..7d3e09ff2da7 100644 --- a/apps/server/src/usage/UsageService.test.ts +++ b/apps/server/src/usage/UsageService.test.ts @@ -53,7 +53,10 @@ const WINDOW: UsageSummaryInput = { const setup = Effect.gen(function* () { const home = yield* Effect.promise(() => - NodeFSP.mkdtemp(NodePath.join(NodeOS.tmpdir(), "usage-service-test-")), + NodeFSP.mkdtemp(NodePath.join(NodeOS.tmpdir(), "usage-service-test-")).then((path) => + // Match the canonical paths used by source discovery, including macOS /var aliases. + NodeFSP.realpath(path), + ), ); yield* Effect.addFinalizer(() => Effect.promise(() => NodeFSP.rm(home, { recursive: true, force: true })),