Fix test:run failing in CI due to missing Playwright browser (#246)
Scope test:run to the unit project only so it doesn't attempt to launch Playwright/Chromium (needed by the storybook browser project) in environments where browsers aren't installed. Add test:storybook script for running storybook stories explicitly when Playwright is available. https://claude.ai/code/session_01PqDTVMzP7dMtLpkn5Sw442 Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2b13e153d6
commit
28a670666c
2 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,8 @@
|
|||
"test": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:coverage": "vitest --coverage",
|
||||
"test:run": "vitest run",
|
||||
"test:run": "vitest run --project=unit",
|
||||
"test:storybook": "vitest run --project=storybook",
|
||||
"test:e2e": "cypress open",
|
||||
"test:e2e:headless": "cypress run",
|
||||
"test:all": "npm run test:run && npm run test:e2e:headless",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ export default defineConfig({
|
|||
projects: [{
|
||||
extends: true,
|
||||
test: {
|
||||
name: 'unit',
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./app/test/setup.ts']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue