test(linter/switch-case-braces): add test for comment between case expression and colon#15754
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merge activity
|
…pression and colon (#15754) Adds a test case to ensure the fixer correctly handles switch cases where a comment appears between the test expression and the colon, such as `case 'a'/* comment */:`. This regression test verifies the fix for the `is_inside_comment` off-by-one bug.
CodSpeed Performance ReportMerging #15754 will not alter performanceComparing Summary
Footnotes
|
bade05c to
e0728fa
Compare
54f9675 to
5815c08
Compare
…pression and colon (oxc-project#15754) Adds a test case to ensure the fixer correctly handles switch cases where a comment appears between the test expression and the colon, such as `case 'a'/* comment */:`. This regression test verifies the fix for the `is_inside_comment` off-by-one bug.

Adds a test case to ensure the fixer correctly handles switch cases where a comment appears between the test expression and the colon, such as
case 'a'/* comment */:. This regression test verifies the fix for theis_inside_commentoff-by-one bug.