Skip to content

Upgrade to vitest 1.3.0. #31

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

Merged
merged 1 commit into from
Aug 4, 2025
Merged

Upgrade to vitest 1.3.0. #31

merged 1 commit into from
Aug 4, 2025

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Aug 4, 2025

That version deprecates an overload of it and introduces a new one, where testOptions is the second argument. In order to upgrade to future versions (compatible with newer Vite versions), we need the new test code, and hence the new Vitest version.

Vitest 1.3.0 nominally requires Vite 5.x. However, empirically it can cope with our Vite 4.x, so we keep it there.

That version deprecates an overload of `it` and introduces a new
one, where `testOptions` is the second argument. In order to
upgrade to future versions (compatible with newer Vite versions),
we need the new test code, and hence the new Vitest version.

Vitest 1.3.0 nominally requires Vite 5.x. However, empirically it
can cope with our Vite 4.x, so we keep it there.

It does not support Node.js v16, though. We upgrade to Node.js v18
instead.

Co-authored-by: NavidJalali <[email protected]>
@sjrd sjrd merged commit 48015fa into scala-js:main Aug 4, 2025
2 checks passed
@sjrd sjrd deleted the vitest-1.3.0 branch August 4, 2025 14:47
@sjrd sjrd mentioned this pull request Aug 4, 2025
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