Skip to content

test: add setup for client, server and e2e#5

Merged
lloydrichards merged 6 commits intomainfrom
test/add-setup
Dec 10, 2025
Merged

test: add setup for client, server and e2e#5
lloydrichards merged 6 commits intomainfrom
test/add-setup

Conversation

@lloydrichards
Copy link
Owner

Goals/Scope

Adding a basic test setup for the client and server as well as an E2E to be used in CI.


Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@lloydrichards lloydrichards merged commit c63113d into main Dec 10, 2025
8 checks passed
@lloydrichards lloydrichards deleted the test/add-setup branch December 10, 2025 18:04
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.

[test] add unit and browser tests

1 participant