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

Switch to Vitest because it supports ESM #2066

Merged
merged 3 commits into from Oct 9, 2023

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Oct 9, 2023

While working on #2065
I was reminded that jest does not have adequate TS / ESM support (it still thinks everything is cjs -- and just technically can be set up to work with native ESM, but it's a huuuuge pain, and no one has time for that).

So here is jest replaced by vitest.
I had the option of keeping the "globals" support, but it's better practice to import the things used rather than rely on globals (makes types and eslint easier when imported)

Both before and after this change are 39 test files with 329 tests.

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review October 9, 2023 01:36
@BobrImperator BobrImperator merged commit ce21365 into mainmatter:master Oct 9, 2023
7 checks passed
@NullVoxPopuli NullVoxPopuli deleted the switch-to-vitest branch October 9, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants