The gates pass and the page still looks wrong
If every gate prints green and the page still looks wrong, believe your eyes. The gates never looked at it.
Status: A known gap, written down on purpose.
What you see
All five gates exit 0:
npx tsc --noEmit # types
npm run lint # lint, zero warnings allowed
npm test # unit tests over the pure logic
npm run build # the build the host will serve
npm run audit # the house audit, zero failures allowed
Every gate prints green and the page still looks wrong: a clipped heading, text you cannot read in dark mode, a button that wraps.
Why it happens
The tests cover the logic that produces a result: parsing, grading, arithmetic, export formats. They do not cover whether a button looks right.
There is no browser automation in these repos, by rule. So a visual regression is caught by a person, or it is not caught at all.
The fix
- Treat what you see as a defect, even if every gate is green.
- Open the build in your own browser at phone width, in light and in dark.
- Fix the markup or the tokens, then run the gates again so the fix did not break logic.
- If you cannot check it yourself, say "needs a browser check" in the pull request.
Check it yourself
Run the gates, then look at the result with your own eyes:
npm run build && npm run preview
# open http://localhost:4173 in your browser
For this desk, npm run preview serves the build locally. Other repos name their preview
script in their README.
Where this came from
Source: Quality bug log, test strategy.