Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use oxc's own graphical reporter for test snapshots #2241

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions crates/oxc_linter/src/snapshots/adjacent_overload_signatures.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
source: crates/oxc_linter/src/tester.rs
expression: adjacent_overload_signatures
---

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:18]
2 │ function foo(s: string);
3 │ function foo(n: number);
· ───
Expand All @@ -14,7 +15,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:18]
2 │ function foo(s: string);
3 │ function foo(n: number);
· ───
Expand All @@ -25,7 +26,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:23]
1 │ export function foo(s: string);
2 │ export function foo(n: number);
· ───
Expand All @@ -36,7 +37,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:23]
1 │ export function foo(s: string);
2 │ export function foo(n: number);
· ───
Expand All @@ -47,7 +48,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:16]
1 │ function foo(s: string);
2 │ function foo(n: number);
· ───
Expand All @@ -58,7 +59,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:16]
1 │ function foo(s: string);
2 │ function foo(n: number);
· ───
Expand All @@ -69,7 +70,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:24]
1 │ declare function foo(s: string);
2 │ declare function foo(n: number);
· ───
Expand All @@ -80,7 +81,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:24]
1 │ declare function foo(s: string);
2 │ declare function foo(n: number);
· ───
Expand All @@ -91,7 +92,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:25]
2 │ export function foo(s: string): void;
3 │ export function foo(n: number): void;
· ───
Expand All @@ -103,7 +104,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:4:1]
╭─[adjacent_overload_signatures.tsx:5:18]
4 │ export function foo(sn: string | number): void;
5 │ function baz(s: string): void;
· ───
Expand All @@ -114,7 +115,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:25]
2 │ export function foo(s: string): void;
3 │ export function foo(n: number): void;
· ───
Expand All @@ -126,7 +127,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:4:1]
╭─[adjacent_overload_signatures.tsx:5:18]
4 │ export function foo(sn: string | number): void;
5 │ function baz(s: string): void;
· ───
Expand All @@ -137,7 +138,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ foo(s: string): void;
3 │ foo(n: number): void;
· ───
Expand All @@ -149,7 +150,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:10]
2 │ foo(s: string): void;
3 │ ['foo'](n: number): void;
· ─────
Expand All @@ -161,7 +162,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ type Foo = {
2 │ foo(s: string): void;
· ───
Expand All @@ -172,7 +173,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "call" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ interface Foo {
2 │ (s: string): void;
· ──────────────────
Expand All @@ -183,7 +184,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ foo(s: string): void;
3 │ foo(n: number): void;
· ───
Expand All @@ -195,7 +196,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:10]
2 │ foo(s: string): void;
3 │ ['foo'](n: number): void;
· ─────
Expand All @@ -207,7 +208,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ foo(s: string): void;
3 │ 'foo'(n: number): void;
· ─────
Expand All @@ -219,7 +220,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ interface Foo {
2 │ foo(s: string): void;
· ───
Expand All @@ -230,7 +231,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:4:1]
╭─[adjacent_overload_signatures.tsx:5:11]
4 │ baz(s: string): void;
5 │ baz(n: number): void;
· ───
Expand All @@ -241,7 +242,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ new (s: string);
3 │ new (n: number);
· ───
Expand All @@ -253,7 +254,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ interface Foo {
2 │ new (s: string);
· ───
Expand All @@ -264,21 +265,21 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ interface Foo {
2 │ new (s: string);
· ───
3 │ foo(): void;
╰────
╭─[adjacent_overload_signatures.tsx:5:1]
╭─[adjacent_overload_signatures.tsx:6:9]
5 │ bar(): void;
6 │ new (sn: string | number);
· ───
7 │ }
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "constructor" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ constructor(s: string);
3 │ constructor(n: number);
· ───────────
Expand All @@ -290,7 +291,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ foo(s: string): void;
3 │ foo(n: number): void;
· ───
Expand All @@ -302,7 +303,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ foo(s: string): void;
3 │ ['foo'](n: number): void;
· ──────
Expand All @@ -314,7 +315,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:3:1]
╭─[adjacent_overload_signatures.tsx:4:9]
3 │ "foo"(s: string): void;
4 │ foo(n: number): void;
· ───
Expand All @@ -326,7 +327,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "constructor" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ class Foo {
2 │ constructor(s: string);
· ───────────
Expand All @@ -337,7 +338,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ class Foo {
2 │ foo(s: string): void;
· ───
Expand All @@ -348,7 +349,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "static foo" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ class Foo {
2 │ static foo(s: string): void;
· ──────────
Expand All @@ -359,7 +360,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "#private" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:1:1]
╭─[adjacent_overload_signatures.tsx:2:9]
1 │ class Test {
2 │ #private(): void;
· ────────
Expand All @@ -370,7 +371,7 @@ expression: adjacent_overload_signatures
╰────

⚠ typescript-eslint(adjacent-overload-signatures): All "#private" signatures should be adjacent.
╭─[adjacent_overload_signatures.tsx:2:1]
╭─[adjacent_overload_signatures.tsx:3:9]
2 │ #private(): void;
3 │ '#private'(): void;
· ──────────
Expand All @@ -380,4 +381,3 @@ expression: adjacent_overload_signatures
6 │ }
╰────


2 changes: 1 addition & 1 deletion crates/oxc_linter/src/snapshots/alt_text.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
source: crates/oxc_linter/src/tester.rs
expression: alt_text
---

⚠ eslint-plugin-jsx-a11y(alt-text): Missing `alt` attribute.
╭─[alt_text.tsx:1:1]
1 │ <img />;
Expand Down Expand Up @@ -443,4 +444,3 @@ expression: alt_text
╰────
help: <input> elements with type="image" must have a text alternative through the `alt`, `aria-label`, or `aria-labelledby` prop.


6 changes: 3 additions & 3 deletions crates/oxc_linter/src/snapshots/anchor_has_content.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
source: crates/oxc_linter/src/tester.rs
expression: anchor_has_content
---

⚠ eslint-plugin-jsx-a11y(anchor-has-content): Missing accessible content when using `a` elements.
╭─[anchor_has_content.tsx:1:1]
╭─[anchor_has_content.tsx:1:2]
1 │ <a />
· ─
╰────
Expand Down Expand Up @@ -38,10 +39,9 @@ expression: anchor_has_content
help: Provide screen reader accessible content when using `a` elements.

⚠ eslint-plugin-jsx-a11y(anchor-has-content): Missing accessible content when using `a` elements.
╭─[anchor_has_content.tsx:1:1]
╭─[anchor_has_content.tsx:1:2]
1 │ <a title />
· ─
╰────
help: Provide screen reader accessible content when using `a` elements.


Loading
Loading