Repository navigation
ci: skip vitest <=5.0.5 in Dependabot - #217
Merged
Merged
Conversation
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
|
🎉 This PR is included in version 1.31.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Dependabot
ignoreforvitestversions>=5.0.0 <=5.0.5.Vitest up to 5.0.5 running against Vite 8.3.5 crashes while printing a
globalSetuperror (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:code.charCodeAt is not a functionThe 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.ymlsays to drop the rule once a fixed release is out.🤖 Generated with Claude Code
https://claude.ai/code/session_01LfwzwYt58KixnaEKFGeVFG