Skip to content

chore(vitest): update to vitest 5 - #183

Closed
JuanGalilea wants to merge 1 commit into
masterfrom
vitest-5
Closed

JuanGalilea wants to merge 1 commit into
masterfrom
vitest-5

Conversation

@JuanGalilea

@JuanGalilea JuanGalilea commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

solves #179

This one might not be safe to merge tho 😢

@metalwarrior665

Copy link
Copy Markdown
Member

This is quite annoying that we would have to force users to stay on lower or higher vitest version. We should figure out some better way for this.

@JuanGalilea

Copy link
Copy Markdown
Contributor Author

since there are breaking changes in basic APIs (we use) from v3 to v5 i doubt the solution will be nice 😢

@metalwarrior665

Copy link
Copy Markdown
Member

We would have to decouple out solution from vitest or make it so it supports any version in a range

@metalwarrior665 metalwarrior665 mentioned this pull request Nov 12, 2026
4 tasks done
metalwarrior665 pushed a commit that referenced this pull request Nov 12, 2026
The lib's peer range is `vitest >=5.0.0` and the package needs the Node.js versions vitest 5 runs on (22.12+, 24
or 26+). Ports the soft `expect` wrapper and the matcher typings to vitest 5's `Assertion` from #183. The repo's
own tests run on vitest 5.0.5, with esbuild 0.28.2, which vite 8 needs.

Vitest 4 and newer no longer exclude `dist` by default, and `test`'s folder filters match a compiled copy like
`dist/test/platform/a.test.js` too, so `test` passes `--exclude=**/dist/**`, on top of the repository's own
excludes. This repo's vitest config excludes `dist` and the CLIs compiled for its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016XtpQw9Dj33AVeATjriAiu
@artogahr

Copy link
Copy Markdown
Member

Seems to be superseeded by #252, feel free to reopen if needed

@artogahr artogahr closed this Nov 14, 2026
@artogahr
artogahr deleted the vitest-5 branch November 14, 2026 14:58
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.

3 participants