Problem Brief
Build a Pomodoro timer toggling Focus (25:00) and Break (05:00) modes cleanly with Start, Pause, Switch, and Reset.
Requirements
- Show mode inside `[data-testid="mode-label"]` and clock inside `[data-testid="pomodoro-clock"]`.
- Switching `[data-testid="switch-mode"]` alternates `Focus` (`25:00`) and `Break` (`05:00`).
- Clicking `[data-testid="toggle-run"]` starts/pauses ticking and toggles label Start/Pause.
Progressive Hints (1)
- Keep `mode: "focus" | "break"`, `secondsLeft`, and single active `setInterval` cleanup.
Reference Solution
Stuck? Load the verified reference code into your editor.
Automated Test Suite
2 Test Cases Ready- Alternates between Focus (25:00) and Break (05:00)Switch Mode changes clock cleanly
- Toggles Start/Pause stateClicking Start flips button text to Pause
Live Sandboxed Previewiframe sandbox