Repository navigation
fix(wasm): pin vite to 8.3.4 so reporter errors stay visible under vitest - #179
Closed
shunsuke-shimomura wants to merge 1 commit into
Closed
shunsuke-shimomura wants to merge 1 commit into
shunsuke-shimomura wants to merge 1 commit into
Conversation
…test Vite 8.3.5 reads the inline source map with `code.charCodeAt`, but vitest 5.0.5 hands it a Buffer for modules served from its transform cache (vitest-dev/vitest#11682). Any error thrown by a reporter then crashes vitest's error formatting with `code.charCodeAt is not a function`, which hides the reporter's explicit failures and breaks the adapter tests that assert on them. The upstream fix (vitest-dev/vitest#11709) is merged but not released yet, so pin vite through `overrides` in this package only; the web UI is unaffected. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 task done
Member
Author
|
Superseded: the same commit now sits on the Renovate branch itself (#176), which carries the explanation in its description. Closing this one so a single PR lands the lock file maintenance together with the vite 8.3.4 override. |
1 task
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.
Why
The Renovate lock file maintenance PR #176 fails
Test the TypeScript binding: three adapter tests expect the reporter's explicit error message (includeTaskLocation,more than once), but the nested vitest run printsTypeError: code.charCodeAt is not a functioninstead.Vite 8.3.5 switched its inline source-map extraction to
code.charCodeAt(vitejs/vite#23775), while vitest 5.0.5 passes aBufferfor modules served from its transform cache (ourdist/vitest.jsreporter among them). Any error thrown by a reporter then crashes vitest's error formatting. Tracked upstream as vitest-dev/vitest#11682; the fix (vitest-dev/vitest#11709) is merged but not in any released vitest yet (latest is 5.0.5).What
viteto 8.3.4 throughoverridesincrate/inka-evidence-wasm/package.jsononly. The lock file onmainalready resolves 8.3.4, so it is unchanged here.The web UI keeps vite 8.3.5; it has no reporter that throws and its CI passed on #176.
Verification
Applied the same override on top of the #176 branch (vite 8.3.5 in the lock), ran
npm installandnpm testincrate/inka-evidence-wasm: 53 tests in 4 files pass. Without the override the same three tests fail as in CI.prek run --fileson the changed files passes.Follow-up
After this merges, rebase #176 (tick its rebase checkbox) so the lock file maintenance keeps vite at 8.3.4 and CI goes green. Remove the override once a vitest release ships #11709; tracked in #180.
🤖 Generated with Claude Code