Skip to content

Migrate tests to Vitest 4#67

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

Migrate tests to Vitest 4#67
kentcdodds merged 9 commits into
mainfrom
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

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown

🔎 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:

Comment thread vitest.config.ts Outdated
@cursor
cursor Bot temporarily deployed to preview-67 April 2, 2026 16:36 Inactive
Comment thread mcp/mcp-server-e2e.test.ts Outdated
@cursor
cursor Bot temporarily deployed to preview-67 April 2, 2026 16:41 Inactive
Comment thread mock-servers/resend/resend-mock.test.ts
@cursor
cursor Bot temporarily deployed to preview-67 April 2, 2026 16:52 Inactive
Comment thread mcp/mcp-server-e2e.test.ts Outdated
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>
Comment thread worker/ai-runtime.test.ts
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Comment thread worker/ai-runtime.test.ts Outdated
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Comment thread mcp/mcp-server-e2e.test.ts
Comment thread mock-servers/resend/resend-mock.test.ts Outdated
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Comment thread client/app-session-refresh.test.ts
Comment thread vitest.config.ts Outdated
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