From bd73eb0c3ecea07759e3c5ff151a59db697b0d92 Mon Sep 17 00:00:00 2001 From: Matthew P Munger Date: Wed, 26 Aug 2026 12:38:55 -0500 Subject: [PATCH] fix: one PERSON caller per test file, not two MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit F5 (#83) and R2 (#86) repaired the same F4 breakage in parallel and landed minutes apart. Both added a `const PERSON: Caller` to `digest-arrival`, `digest` and `webhook`; the merge was textually clean and took both, so main has been failing on `TS2451: Cannot redeclare block-scoped variable 'PERSON'` since 96964f9. R2's declarations are kept — each says what the caller is for in that file's own terms, where F5's was one line repeated three times. F5's duplicates are removed. No other difference between the two repairs: the values are identical. 1241 tests pass, lint, typecheck and build are clean. --- src/lib/__tests__/digest-arrival.test.ts | 2 -- src/lib/__tests__/digest.test.ts | 2 -- src/lib/__tests__/webhook.test.ts | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/lib/__tests__/digest-arrival.test.ts b/src/lib/__tests__/digest-arrival.test.ts index cc3fed7..742bcca 100644 --- a/src/lib/__tests__/digest-arrival.test.ts +++ b/src/lib/__tests__/digest-arrival.test.ts @@ -41,8 +41,6 @@ import { pendingPage } from "../mutations"; const moduleDir = path.dirname(fileURLToPath(import.meta.url)); const appDir = path.resolve(moduleDir, "../../app/(app)"); const AT = "2026-08-25T06:00:00.000Z"; -/** F4 records who fired a transition, not merely that a person did. */ -const PERSON: Caller = { kind: "person", userId: "rae@webflow.com" }; const DATE = "2026-08-25"; const APP = "https://watch.example.com/page-watch"; diff --git a/src/lib/__tests__/digest.test.ts b/src/lib/__tests__/digest.test.ts index 25b3e62..d1b08f5 100644 --- a/src/lib/__tests__/digest.test.ts +++ b/src/lib/__tests__/digest.test.ts @@ -34,8 +34,6 @@ import { pendingPage } from "../mutations"; */ const AT = "2026-08-25T06:00:00.000Z"; -/** F4 records who fired a transition, not merely that a person did. */ -const PERSON: Caller = { kind: "person", userId: "rae@webflow.com" }; const DATE = "2026-08-25"; const APP = "https://watch.example.com/page-watch"; const SCHEDULE = { localTime: "00:00", timeZone: "America/Chicago", overridden: true }; diff --git a/src/lib/__tests__/webhook.test.ts b/src/lib/__tests__/webhook.test.ts index a8b0cc7..5a04545 100644 --- a/src/lib/__tests__/webhook.test.ts +++ b/src/lib/__tests__/webhook.test.ts @@ -18,8 +18,6 @@ afterEach(() => { }); const AT = "2026-08-04T06:00:00.000Z"; -/** F4 records who fired a transition, not merely that a person did. */ -const PERSON: Caller = { kind: "person", userId: "rae@webflow.com" }; /** * Whoever marked the fix. The payload is the digest message and the digest is