Skip to content

Commit 297352b

Browse files
Suppressing warnings in jsx.test.ts
1 parent 51a502d commit 297352b

File tree

1 file changed

+6
-0
lines changed
  • rewrite-javascript/rewrite/test/javascript/parser

1 file changed

+6
-0
lines changed

rewrite-javascript/rewrite/test/javascript/parser/jsx.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {RecipeSpec} from "../../../src/test";
77
describe("jsx mapping", () => {
88
const spec = new RecipeSpec();
99

10+
// noinspection TypeScriptMissingConfigOption
1011
test("jsx with comments", () =>
1112
spec.rewriteRun(
1213
//language=jsx
@@ -20,9 +21,11 @@ describe("jsx mapping", () => {
2021
)
2122
});
2223

24+
2325
test("jsx member expression", () => {
2426
spec.rewriteRun(
2527
//language=jsx
28+
// noinspection JSXUnresolvedComponent
2629
tsx("<Foo.Bar />"),
2730
)
2831
});
@@ -52,6 +55,7 @@ describe("jsx mapping", () => {
5255
tsx("<div className=\"foo\"><span>Hello</span></div>")
5356
));
5457

58+
// noinspection HtmlUnknownAttribute
5559
test("jsx with namespaced attribute", () =>
5660
spec.rewriteRun(
5761
//language=jsx
@@ -65,6 +69,7 @@ describe("jsx mapping", () => {
6569
tsx("<img src=\"foo.png\" alt=\"Foo\" />")
6670
));
6771

72+
// noinspection TypeScriptMissingConfigOption,TypeScriptJSXUnresolvedComponent
6873
test("fragment shorthand", () =>
6974
spec.rewriteRun(
7075
//language=tsx
@@ -75,6 +80,7 @@ describe("jsx mapping", () => {
7580
`)
7681
));
7782

83+
// noinspection TypeScriptMissingConfigOption
7884
test("jsx with nested elements", () =>
7985
spec.rewriteRun(
8086
//language=jsx

0 commit comments

Comments
 (0)