Skip to content

Comments

Bootstrap Vitest + Playwright testing infra with minimal samples#130

Closed
cto-new[bot] wants to merge 2 commits intov0.3.xfrom
chore/test-infra-vitest-playwright-add-pnpm-scripts-e2e-unit
Closed

Bootstrap Vitest + Playwright testing infra with minimal samples#130
cto-new[bot] wants to merge 2 commits intov0.3.xfrom
chore/test-infra-vitest-playwright-add-pnpm-scripts-e2e-unit

Conversation

@cto-new
Copy link
Contributor

@cto-new cto-new bot commented Nov 15, 2025

Summary

Establish a unified testing scaffold that combines Vitest for unit/component tests and Playwright for end-to-end (E2E) testing. Includes minimal example tests, configuration, and scripts to run tests locally and in CI.

Details

  • Add Vitest setup with jsdom environment, path aliases, and coverage thresholds
  • Introduce Testing Library dependencies for React component testing
  • Introduce Playwright setup and basic E2E smoke tests (headless)
  • Add npm/pnpm scripts: test, test:unit, test:e2e (CI-friendly)
  • Create test/setup.ts for global mocks and cleanup
  • Provide minimal unit test samples (rate-limit time utils, env schema, cost calcs, provider selector integration)
  • Create E2E configs and sample tests for home and settings pages
  • Update.gitignore and add basic documentation (TESTING.md, TEST_SUMMARY.md)

cto-new bot and others added 2 commits November 15, 2025 17:18
Establish unified unit and E2E testing scaffold for the repo, including minimal samples and scripts. This lays the groundwork for CI-ready test coverage and smoke tests across components/services and end-to-end flows.
@ding113 ding113 closed this Nov 17, 2025
@ding113 ding113 deleted the chore/test-infra-vitest-playwright-add-pnpm-scripts-e2e-unit branch November 17, 2025 16:54
@github-actions github-actions bot mentioned this pull request Dec 17, 2025
7 tasks
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