Skip to content

chore: make pnpm test run Playwright, add root test:unit and test:e2e - #15

Open
sam-goodwin wants to merge 2 commits into
mainfrom
chore/test-scripts
Open

sam-goodwin wants to merge 2 commits into
mainfrom
chore/test-scripts

Conversation

@sam-goodwin

Copy link
Copy Markdown
Collaborator

pnpm test never ran Playwright, and the root had no test:e2e:

$ pnpm test:e2e
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "test:e2e" not found
 // packages/frontend/package.json
-    "test": "vitest run --project unit",
+    "test": "vitest run",
+    "test:unit": "vitest run --project unit",
     "test:e2e": "vitest run --project e2e",

 // package.json
     "test": "pnpm --recursive test",
+    "test:unit": "pnpm --filter @cafe/frontend test:unit",
+    "test:e2e": "pnpm --filter @cafe/frontend test:e2e",
pnpm test:unit        # Story + Scene, ~1s
pnpm test:e2e         # Playwright
pnpm test             # everything: unit, API and e2e

The CI check job runs test:unit. The demo job installs Chromium, because the recorded pnpm test / ALCHEMY_DEV=1 pnpm test now run e2e too. AGENTS.md and the README use the new scripts.

ALCHEMY_PROFILE=testing pnpm test              # backend 6/6, frontend 31/31 (26 unit + 5 e2e)
ALCHEMY_PROFILE=testing ALCHEMY_DEV=1 pnpm test:e2e   # 5/5

🤖 Generated with Claude Code

`pnpm test` in @cafe/frontend only ran the unit project, so neither it nor
the root `pnpm test` ran the Playwright e2e suite, and the root had no
test:e2e script. Frontend `test` now runs every vitest project; test:unit
is the fast Story + Scene loop. The demo job installs Chromium because its
recorded `pnpm test` now includes e2e.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preview deployed

App: https://cafe-web-pr-15-vgfijavvx4kf6tvy.testing-2b2.workers.dev

Built from commit c75ab1c.


This comment updates automatically with each push.

The recorded `pnpm test` now includes Playwright, so the demo got longer
and the smallest GIF was 5.5 MB. Timelapse the test runs at 8x and add a
smaller fallback encoding.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Demo of this preview

Demo of this preview

Video: https://pub-68e74efbba3b4272943c198da363bcab.r2.dev/pr-15/5d92f47bb639bb77293ecd78ebb2c04de99049c4/demo.mp4
App: https://cafe-web-pr-15-vgfijavvx4kf6tvy.testing-2b2.workers.dev

Recorded from commit 5d92f47: alchemy deploy, chatting in the browser, alchemy dev, pnpm test, ALCHEMY_DEV=1 pnpm test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant