Skip to content

Commit c9e0951

Browse files
test(linter/plugins): prevent test fixture getting formatted (#15674)
Add `// prettier-ignore` comment to test fixture, to prevent it getting formatted once #15601 is merged.
1 parent a5feebc commit c9e0951

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

apps/oxlint/test/fixtures/isSpaceBetween/files/index.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<Bar>b c</Bar>;
55

66
// We should return `false` for `isSpaceBetween(openingElement, closingElement)`, but we currently return `true`
7-
<Qux>
8-
d
9-
e
10-
</Qux>;
7+
// prettier-ignore
8+
<Qux>d
9+
e</Qux>;

apps/oxlint/test/fixtures/isSpaceBetween/output.snap.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,11 @@
206206
| isSpaceBetweenTokens(openingElement, closingElement): true
207207
| isSpaceBetween(closingElement, openingElement): true
208208
| isSpaceBetweenTokens(closingElement, openingElement): true
209-
,-[files/index.jsx:7:1]
210-
6 | // We should return `false` for `isSpaceBetween(openingElement, closingElement)`, but we currently return `true`
211-
7 | ,-> <Qux>
212-
8 | | d
213-
9 | | e
214-
10 | `-> </Qux>;
215-
`----
209+
,-[files/index.jsx:8:1]
210+
7 | // prettier-ignore
211+
8 | ,-> <Qux>d
212+
9 | `-> e</Qux>;
213+
`----
216214
217215
Found 0 warnings and 13 errors.
218216
Finished in Xms on 2 files using X threads.

0 commit comments

Comments
 (0)