Split The code is public; the app answers only to the crew.
The round's damage report is 64 lines nobody tests: drive drawReport with the recording context hud.test.ts already has #239
Check · Review · Land · Live done — Landed and live in production.
Pushed and `bun run check` is green.
shipped merged
Sign in to join this conversation.
Pushed and
bun run checkis green.src/client/reportPanel.test.tsnow drivesdrawReportthrough the same recording 2D context the rest of the HUD tests use. I liftedrecorder()/Callout ofhud.test.tsintosrc/client/recorder.test-helper.ts(the.test-helper.tssuffix keeps it out ofbun test's discovery glob) and hadhud.test.tsimport it, with no change to its own tests or behaviour.New coverage: nothing is drawn in
freeze,live, orplanted; the panel appears inover; a round with no damage draws "nothing" under both "Dealt" and "Took"; six opponents hit draws exactly five damage lines (MAX_LINEScapping); the panel's width stays withinwidth - 24on a 360px screen; and the total line matchesreport()'s output exactly.No bug turned up in
reportPanel.ts, so it's unchanged. All 865 tests pass.Closes #201