Repository navigation
Commit 052b9e7
committed
fix(gate): ignore directive-looking JSX text in tsx sources
CodeRabbit: getLeadingCommentRanges is text-based, so rendered JSX text
such as "<div> // Stryker disable all" produced a comment range and failed
a touched .tsx file. Skip ranges whose token is JsxText; comments inside
JSX expression containers ({// ...}) still resolve to a real comment and
remain rejected.
Tests: node --test scripts/stryker-diff.test.mjs (46/46).1 parent 372f5fb commit 052b9e7
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
657 | 676 | | |
658 | 677 | | |
659 | 678 | | |
| |||
0 commit comments