Skip to content

ci: skip vitest <=5.0.5 in Dependabot - #217

Merged
iskhakovt merged 2 commits into
mainfrom
claude/dependabot-vitest
Oct 22, 2026
Merged

iskhakovt merged 2 commits into
mainfrom
claude/dependabot-vitest

Conversation

@iskhakovt

@iskhakovt iskhakovt commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Adds a Dependabot ignore for vitest versions >=5.0.0 <=5.0.5.

Vitest up to 5.0.5 running against Vite 8.3.5 crashes while printing a globalSetup error (code.charCodeAt is not a function). A failing integration setup then shows up only as "No test files found". That hid a real failure on #214, which stayed on Vitest 4.1.12 for this reason. I closed #209 (vitest 5.0.1) in favour of this rule.

Tracked upstream as vitest-dev/vitest#11682: Vitest's server runner reads a temp file without an encoding, so it gets a Buffer, and Vite 8.3.5 (vitejs/vite#23775) now expects text. Reproduced in a bare project whose only content is a throwing globalSetup, so it isn't our config:

Vitest Vite Result
5.0.5 8.3.4 setup error printed
5.0.5 8.3.5 code.charCodeAt is not a function

The fix belongs in Vitest and will probably ship as a 5.0.x patch, so the rule ignores only the releases known to be affected. Anything newer is still proposed. The comment in dependabot.yml says to drop the rule once a fixed release is out.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LfwzwYt58KixnaEKFGeVFG

Vitest 5.0.x crashes while printing a globalSetup error, masking the
real integration-setup failure behind "No test files found" (seen on
#214, which stayed on 4.1.12 for that reason). Ignore only 5.0.x so a
5.1 release is still proposed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfwzwYt58KixnaEKFGeVFG
The crash is Vitest's server runner reading a temp file without an
encoding, which only breaks against Vite 8.3.5 (vitest-dev/vitest#11682;
reproduced: 5.0.5 + Vite 8.3.4 prints the setup error, + 8.3.5 crashes).
The fix will land in Vitest itself, likely as a 5.0.x patch, so ignore
only <=5.0.5 rather than the whole 5.0 line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfwzwYt58KixnaEKFGeVFG
@iskhakovt iskhakovt changed the title ci: skip vitest 5.0.x in Dependabot ci: skip vitest <=5.0.5 in Dependabot Oct 21, 2026
@iskhakovt
iskhakovt merged commit 1ae7f78 into main Oct 22, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.31.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants