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

chore: use vitest for tests #1817

Merged
merged 9 commits into from
Nov 1, 2023
Merged

chore: use vitest for tests #1817

merged 9 commits into from
Nov 1, 2023

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Nov 1, 2023

Changes

  • Splits the TypeScript configuration setup to correctly support different library modules (core, node, browser, native and iife).
  • Disables allowSyntheticDefaultImports by default (previously, true).
  • Uses Vitest for unit tests.
  • Uses Vitest for Node.js tests.
  • Uses Vitest for Node.js module testing.
  • Adjusts tsconfig.json for type testing to extend the correct base and allow JSON imports.

@kettanaito kettanaito marked this pull request as draft November 1, 2023 10:11
@kettanaito kettanaito changed the title chore: split tsconfig.json chore: migrate to vitest Nov 1, 2023
@kettanaito kettanaito marked this pull request as ready for review November 1, 2023 11:47
@kettanaito kettanaito changed the title chore: migrate to vitest chore: use vitest for tests Nov 1, 2023
@kettanaito kettanaito merged commit 9e9c5a1 into main Nov 1, 2023
9 checks passed
@kettanaito kettanaito deleted the chore/use-vitest branch November 1, 2023 12:05
@kettanaito
Copy link
Member Author

Released: v2.0.2 🎉

This has been released in v2.0.2!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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