test: add testing framework with Vitest Workers pool and Playwright#9
Open
test: add testing framework with Vitest Workers pool and Playwright#9
Conversation
94d1993 to
1cfd7d9
Compare
Set up the foundational testing infrastructure for the monorepo: - apps/server: Vitest + @cloudflare/vitest-pool-workers (v0.14) for integration tests running in real miniflare Workers runtime with D1/KV - apps/web: Playwright for E2E tests against dev server - docs/testing.md: testing strategy overview for all workspaces Includes smoke tests verifying Hono routes, oRPC planet API, and D1 CRUD operations (todos create + list).
1cfd7d9 to
273e50e
Compare
- Initialize Playwright Test Agents with agent definitions in .claude/agents/ for Claude Code discovery - Add playwright-test MCP server to .mcp.json with --config pointing to apps/web/playwright.config.ts - Add seed.spec.ts and specs/ directory for test plans - Update docs/testing.md with agent workflow documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@cloudflare/vitest-pool-workersv0.14 — integration tests running in real miniflare Workers runtime with D1/KV bindingsSmoke tests included
GET /— hello messagePOST /rpc/planet/list— 8 planets via oRPCReference
Based on
MizuFinancial/affiliatetesting approach using@cloudflare/vitest-pool-workersfor real Workers runtime tests instead of mockingcloudflare:workers.Test plan
pnpm test— 3 tests passedpnpm test:e2e— requires running dev server