test: add setup for client, server and e2e#5
Merged
lloydrichards merged 6 commits intomainfrom Dec 10, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive test infrastructure across the monorepo including unit tests for client and server, plus E2E testing with visual regression.
Key Changes:
- Added Vitest 4.x for unit testing with workspace support
- Configured Playwright for E2E and visual regression tests
- Set up browser-based testing for React components
- Added CI workflows for automated testing
Reviewed changes
Copilot reviewed 20 out of 23 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
vitest.config.ts |
Root Vitest configuration with globals and coverage setup |
playwright.config.ts |
Playwright E2E config with auto-server startup |
package.json |
Added Vitest, Playwright, and testing dependencies |
e2e/smoke.spec.ts |
E2E smoke tests with visual regression |
e2e/smoke.spec.ts-snapshots/ |
Visual regression baseline screenshot |
apps/server/vitest.config.ts |
Server-specific Vitest config using defineProject |
apps/server/src/index.test.ts |
Server unit tests with @effect/vitest |
apps/server-mcp/vitest.config.ts |
MCP server Vitest config |
apps/client/vitest.config.ts |
Client config with Browser Mode and Playwright |
apps/client/src/test-setup.ts |
Test setup importing vitest-browser-react |
apps/client/src/app.test.tsx |
React component tests with mocking |
.github/workflows/post-merge.yml |
Post-merge E2E workflow |
.github/workflows/check-client.yml |
Added Playwright browser installation |
README.md |
Added testing documentation |
apps/server/README.md |
Added server testing documentation |
apps/client/README.md |
Added client testing documentation |
.gitignore |
Excluded test artifacts and Playwright cache |
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.
Goals/Scope
Adding a basic test setup for the client and server as well as an E2E to be used in CI.