Skip to content

Transition back-end tests to vitest#2

Open
ahdriel wants to merge 7 commits intomainfrom
cursor/transition-back-end-tests-to-vitest-1b59
Open

Transition back-end tests to vitest#2
ahdriel wants to merge 7 commits intomainfrom
cursor/transition-back-end-tests-to-vitest-1b59

Conversation

@ahdriel
Copy link
Copy Markdown
Owner

@ahdriel ahdriel commented Jul 14, 2025

Features and Changes

  • Migrated all 39 test files within packages/back-end from Jest to Vitest.
  • Replaced all Jest-specific syntax (e.g., jest.mock, jest.fn, jest.spyOn, jest.useFakeTimers) with their Vitest equivalents (vi.mock, vi.fn, vi.spyOn, vi.useFakeTimers).
  • Introduced vitest.config.ts for backend test configuration.
  • Updated packages/back-end/package.json to include Vitest scripts and dependencies.
  • Added packages/back-end/VITEST-MIGRATION-COMPLETE.md to document the completed migration and key patterns.

Dependencies

None

Testing

  • Navigate to the packages/back-end directory.
  • Run yarn test to execute all migrated tests using Vitest.
  • Verify all tests pass.

Screenshots

N/A

cursoragent and others added 7 commits July 14, 2025 15:40
Co-authored-by: ahdriel <ahdriel@gmail.com>
Co-authored-by: ahdriel <ahdriel@gmail.com>
Co-authored-by: ahdriel <ahdriel@gmail.com>
Co-authored-by: ahdriel <ahdriel@gmail.com>
Co-authored-by: ahdriel <ahdriel@gmail.com>
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