prospector/web/test
Natalie 28f1bba973
Some checks failed
CI / verify (push) Failing after 3m46s
test(web): add built-bundle render smoke test (the missing red test)
Every vitest/RTL test stayed green while the served app showed a blank
screen, because jsdom + vitest resolve.dedupe collapse styled-components
to one instance and never execute the real rollup bundle. This smoke test
serves web/dist with a static server and loads it in headless system
Chrome (puppeteer-core, no bundled browser), asserting #root is non-empty
and there are zero console/page errors.

Validated as a genuine red test: GREEN on the current build, RED on the
known-blank bundle (#root children=0, pageError 'Cannot read properties
of undefined (reading text)'). Skips with a warning when no Chrome is
found locally; CI sets CHROME_PATH (golden image ships chromium) so it
runs as a hard gate. Run: npm run test:smoke --workspace web (after build).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 10:10:31 -04:00
..
smoke.mjs test(web): add built-bundle render smoke test (the missing red test) 2026-06-30 10:10:31 -04:00