A Playwright revert-proof is vacuous unless dist-web is rebuilt
The session serves the prebuilt app/dist-web, so editing app/src/** and re-running changes
nothing in the browser: the spec re-runs against the OLD bundle and passes, making fault injection
silently prove nothing. Correct loop:
edit src -> pnpm --filter openhuman-app test:e2e:web:build -> run -> restore -> rebuild
TRAP INSIDE THE TRAP: the build runs tsc with noUnusedLocals, so deleting the only use of an
import fails with TS6133 — and a FAILED build leaves dist-web stale, so the next run silently
tests the old bundle again and looks like a pass. Inject faults that keep every import used.
Found during a fleet-wide e2e coverage pass. Severity P2, category harness.
Playwright revert-proof is vacuous unless dist-web is rebuilt; a failed build due to unused-import checks leaves the old bundle, silently testing stale code.
Labelled priority: p2.
Picking this one up. I reproduced it: built the bundle, changed a file under app/src, re-ran the session without rebuilding, and the browser was still served the old code with nothing warning about it.
Planning to make the session refuse a bundle that is older than the sources it was built from, so you get a one-line failure telling you to rebuild instead of a spec that quietly passes against code you already changed.