Originally created by: Akarsh-Hegde
Run tray/src/__tests__/pause.test.js under CI + pre-push by moving it into ui/__tests__ (renamed popover-pause-utils.test.js), so the single existing bun test run auto-discovers it — no bespoke CI step or extra hook line.
pause.test.js — 33 pure-logic tests for the popover's pause helpers (parsePauseMins / fmtCountdown / pauseLabel) — was never run: CI and the pre-push hook invoke bun test only with working-directory: ui, and bun only discovers tests under its cwd.
The first cut added an explicit bun test step in tray/src to both CI and the hook. Simpler, per review feedback: just move the test to ui/__tests__, where the popover's other test (popover-health-panel.test.ts) already lives. bun then picks it up in the one run, and the extra CI step + pre-push line are reverted.
git mv tray/src/__tests__/pause.test.js → ui/__tests__/popover-pause-utils.test.js (94% unchanged); require path repointed to ../../tray/src/pause-utils.js.Tray popover tests step in ci.yml and the wave-2 tray line in .githooks/pre-push..js (require-based, matching pause-utils.js's CommonJS export). ui/tsconfig.json include globs only **/*.ts(x), so npm run build doesn't typecheck it; bun test runs it fine.cd ui && bun test → 268 pass (includes the 33 moved pause-utils tests).cd ui && npm run build clean (the .js test isn't in the tsc include set).ci.yml YAML valid; bash -n .githooks/pre-push clean.ui tests covers the moved test, no separate tray step.🤖 Generated with Claude Code
Originally posted by: coderabbitai[bot]
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests - [ ] Commit unit tests in branch `ci/tray-popover-tests`Comment
@coderabbitai helpto get the list of available commands.Ticket changed by: Akarsh-Hegde