|
Some checks failed
CI / verify (push) Failing after 3m46s
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> |
||
|---|---|---|
| .. | ||
| smoke.mjs | ||