Repository navigation
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
This branch was successfully deployed
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.
The verifier counts a branch by wrapping its test in
__bippyCoverage(...). Forlabel ??= "Untitled",label ||= xandlabel &&= xthe test is the assignment target, and wrapping a target in a call is a syntax error. So every component with a logical assignment failed to mount: DraftTitle, DraftTitleSpelledOut, SeenCounter and SeenCounterSpelledOut inconformance-repros.The coverage transform now rewrites a counted
target ??= valueas(__bippyCoverage(target) ?? (target = value)), and the same for||=and&&=. It parses a file with Babel only when a counter is followed by a logical assignment operator.addCoverageCountersis split out of the Vite plugin so it can be tested directly.logical-assignment-coverage.test.tsruns instrumented??=,||=and&&=, including a member target and one inside an expression. It checks both the result and the counted value. On the old transform it throws a SyntaxError.conformance verifyonlogical-assignments.tsx: 4 verified, 0 counterexamples, views 10/10 covered. Before, all 4 failed to mount.