Repository navigation
test(e2e): update overlay snapshots for the new parser error wording - #268
Merged
Merged
Conversation
The JavaScript parser reports "Unterminated template literal" (matching acorn and webpack) instead of "Unterminated template" after the SWC Next migration, which shifts the wrapped diagnostic in the overlay html snapshots. Regenerated against a rspack main build that contains the SWC Next parser.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
The pinned @rspack/core 2.2.2 still emits the legacy parser error wording. Run the suite against the canary published from rspack main (2.2.10-canary-8ee68a1b-20261014173729), which contains the SWC Next parser, so the updated overlay snapshots match and CI stays green.
…napshots # Conflicts: # package.json # pnpm-lock.yaml
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.
Motivation
The JavaScript parser now reports
Unterminated template literal(matching acorn and webpack) instead ofUnterminated templateafter the SWC Next parser migration inweb-infra-dev/rspack. That wording change shifts the wrapped diagnostic in the overlay html snapshots, so the ecosystem CIdevserversuite currently fails on these overlay assertions.Changes
overlay.test.js.snapentries that embed the parse error text. No test logic changes.@rspack-canary/core@2.2.10-canary-8ee68a1b-20261014173729, the canary published from rspack main (release run), which contains the SWC Next parser. The pinned@rspack/core2.2.2 still emits the legacy wording, so it cannot drive the updated snapshots.@rspack-canary/*through theminimumReleaseAgepolicy inpnpm-workspace.yamlso the fresh canary can be installed.Verification
pnpm run testagainst the canary: 34 test files passed / 2 skipped, 307 tests passed / 9 skipped, and the overlay snapshots match without-u.The snapshots were originally regenerated against a rspack build containing swc-next 0.2.4 (web-infra-dev/rspack#16094); the diagnostic wording is the same on rspack main, so the canary and the PR build agree.