Repository navigation
test: drop duplicate tests and repeated setup - #12
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The identity tests live in one file instead of two, without the cases that repeated each other or the parsing tests in validation.test.ts. One `song()` fixture, one console `capture()` helper and the shared Replay engine replace setup that each test spelled out by hand. The auto engine tests reuse the stub engine's empty search. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
882cba3 to
90ce988
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of proxynico Independent check: PASS on head The first check, on The re-check confirmed:
|
Part of the cleanup Nico asked for: the tests repeated each other and spelled out the same setup by hand. This removes about 100 lines of tests and keeps every behaviour they checked.
What changes
entities.test.tsandapi-parsing.test.ts, which tested the same thing twice. They now live inentities.test.ts, and theparseEntityRefcase already invalidation.test.tsis gone. The stale "we can't import the private parse functions" comment goes with them.song()fixture replaces six hand-written song objects in the pagination tests.capture()helper intests/capture.tsreplaces four copies of the console swap-and-restore code.Blast Radius
Tests only. No source file changes. Revert the commit to undo.
Verification
bun run checkpasses: 87 tests across 16 files. The two tests removed exactly repeated others.Created with Claude Opus 5.5 in Claude Code.