Skip to content

Migrate tests to Vitest 4#67

Merged
kentcdodds merged 9 commits intomainfrom
cursor/vitest-latest-version-bf37
Apr 12, 2026
Merged

Migrate tests to Vitest 4#67
kentcdodds merged 9 commits intomainfrom
cursor/vitest-latest-version-bf37

Conversation

@kentcdodds
Copy link
Copy Markdown
Member

Summary

  • migrate the repo from bun:test to vitest
  • add dedicated Vitest configs for general and unit-only runs
  • update Wrangler-backed integration tests to run under Node-backed Vitest using Node subprocess APIs
  • refresh CI and testing docs to use the new Vitest commands

Testing

  • bun run test:unit
  • bunx vitest run mock-servers/resend/resend-mock.test.ts
  • bun run test:mcp
  • bun run typecheck && bun run lint
Open in Web Open in Cursor 

@kentcdodds kentcdodds marked this pull request as ready for review April 2, 2026 16:24
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

🔎 Preview deployed: https://epicflare-pr-67.kentcdodds.workers.dev

Worker: epicflare-pr-67
D1: epicflare-pr-67-db
KV: epicflare-pr-67-oauth-kv

Mocks:

@cursor cursor bot temporarily deployed to preview-67 April 2, 2026 16:36 Inactive
@cursor cursor bot temporarily deployed to preview-67 April 2, 2026 16:41 Inactive
@cursor cursor bot temporarily deployed to preview-67 April 2, 2026 16:52 Inactive
cursoragent and others added 4 commits April 11, 2026 21:54
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds force-pushed the cursor/vitest-latest-version-bf37 branch from c95b9bc to acfca25 Compare April 12, 2026 03:54
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 64273a7. Configure here.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds merged commit 39f2a2f into main Apr 12, 2026
6 checks passed
@kentcdodds kentcdodds deleted the cursor/vitest-latest-version-bf37 branch April 12, 2026 14:07
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.

2 participants