Skip to content

fix: one PERSON caller per test file, not two - #87

Merged
matthewpmunger merged 1 commit into
mainfrom
fix/duplicate-person-const
Aug 26, 2026
Merged

fix: one PERSON caller per test file, not two#87
matthewpmunger merged 1 commit into
mainfrom
fix/duplicate-person-const

Conversation

@matthewpmunger

Copy link
Copy Markdown
Collaborator

main has been red since 96964f9 with:

error TS2451: Cannot redeclare block-scoped variable 'PERSON'.
  src/lib/__tests__/digest-arrival.test.ts(45,7) and (56,7)
  src/lib/__tests__/digest.test.ts(38,7) and (71,7)
  src/lib/__tests__/webhook.test.ts(22,7) and (28,7)

What happened

F4 (#82) branched from 95b0cc0, before S7 merged at f37b156, so its
actorby: Caller sweep never saw three of S7's test files. That left
main red, and F5 (#83) and R2 (#86) both noticed and both fixed it,
minutes apart. Each added a const PERSON: Caller to the same three files.
Neither merge conflicted, because the declarations sit in different places in
each file — so git took both, and the result does not compile.

What this does

Keeps R2's declarations and removes F5's. R2's say what the caller is for in
each file's own terms; F5's was the same line three times. The values are
identical, so there is no behavioural choice being made here — only which
comment survives.

Nothing else differed between the two repairs.

Verify

lint clean · typecheck clean · 1241/1241 tests · build clean.

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.
@matthewpmunger
matthewpmunger merged commit 0b5f36f into main Aug 26, 2026
4 checks passed
@matthewpmunger
matthewpmunger deleted the fix/duplicate-person-const branch August 26, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant