Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Vitest #491

Merged
merged 9 commits into from
Jul 17, 2024
Merged

Migrate to Vitest #491

merged 9 commits into from
Jul 17, 2024

Conversation

kmcginnes
Copy link
Collaborator

@kmcginnes kmcginnes commented Jul 15, 2024

Description

Migrates to Vitest instead of Jest. Vitest has much better performance, configuration options, and developer tool support.

  • Install Vitest
  • Recommend Vitest VSCode plugin
  • Remove Jest
  • Configure coverage options
  • Added separate pnpm coverage command
  • Added pnpm test:watch if you want to continuously test from the CLI
  • Update Jest references
  • Update patterns for global mocks

Validation

  • Run the tests
  • Integrate with VSCode

Related Issues

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0
    license.
  • I have run pnpm checks to ensure code compiles and meets standards.
  • I have run pnpm test to check if all tests are passing.
  • I have covered new added functionality with unit tests if necessary.
  • I have added an entry in the Changelog.md.

@kmcginnes kmcginnes force-pushed the vitest branch 2 times, most recently from 0e1f1a0 to 3b4d760 Compare July 16, 2024 20:57
@kmcginnes kmcginnes marked this pull request as ready for review July 17, 2024 20:59
michaelnchin
michaelnchin previously approved these changes Jul 17, 2024
@kmcginnes kmcginnes merged commit d81f273 into aws:main Jul 17, 2024
1 check passed
@kmcginnes kmcginnes deleted the vitest branch July 17, 2024 21:45
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.

[Task] Migrate to Vitest instead of Jest
2 participants