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>
35 lines
915 B
JSON
35 lines
915 B
JSON
{
|
|
"name": "@prospector/web",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "NODE_ENV=production vite build",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:smoke": "node test/smoke.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@cocotte/site-themes": "^0.1.1",
|
|
"@cocotte/ui-fab": "^2.3.10",
|
|
"@cocotte/ui-icons": "^1.2.3",
|
|
"@cocotte/ui-theme": "^1.5.2",
|
|
"@cocotte/ui-zname": "^1.2.5",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"styled-components": "^6.3.8"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"jsdom": "^25.0.1",
|
|
"puppeteer-core": "^23.11.1",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^5.4.11",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|