Context
Flagged during adversarial review of #452. That PR adds ~250 lines of new frontend state-machine logic (renderDiscoveredPeers, setupDiscoveredDevice, the wifi/update stall-timeout machinery in data/index.html) plus new mock-server simulation endpoints (simulateDiscoveredWifiConnect, simulateDiscoveredGraduate in server/index.js), and ships with zero corresponding test changes — server/index.test.js is untouched, so the PR's "36/36 passing" is the same count as before and verifies none of the new behavior.
This isn't specific to #452 — it's an example of a broader pattern worth checking project-wide.
Ask
Do a general pass over test coverage:
- Where are the biggest gaps between shipped features and what
server/index.test.js / other test files actually exercise?
- Are there conventions we should adopt (e.g. "new endpoint or new frontend state machine needs a test") to stop this from recurring?
- Is coverage tracked at all today, or only judged ad hoc per PR?
Not asking for 100% coverage — asking for a deliberate look at where the risk currently sits.
Context
Flagged during adversarial review of #452. That PR adds ~250 lines of new frontend state-machine logic (
renderDiscoveredPeers,setupDiscoveredDevice, the wifi/update stall-timeout machinery indata/index.html) plus new mock-server simulation endpoints (simulateDiscoveredWifiConnect,simulateDiscoveredGraduateinserver/index.js), and ships with zero corresponding test changes —server/index.test.jsis untouched, so the PR's "36/36 passing" is the same count as before and verifies none of the new behavior.This isn't specific to #452 — it's an example of a broader pattern worth checking project-wide.
Ask
Do a general pass over test coverage:
server/index.test.js/ other test files actually exercise?Not asking for 100% coverage — asking for a deliberate look at where the risk currently sits.