[eslint] Add test for classes
This used to cause issues because I hadn't configured Babel in the eslint plugin properly, so adding this as a regression test
Lauren Tan committed
Nov 3, 2023 at 16:32 UTC
48e709e7ad4b0f9936455e5556f7b0d13a8ae15e
1 file changed
+8
compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts
+8
@@ -71,6 +71,14 @@ const tests: ForgetTestCases = {
71
}
72
`,
73
},
74
+ {
75
+ name: "Classes don't throw",
76
+ code: normalizeIndent`
77
+ class Foo {
78
+ #bar() {}
79
+ }
80
+ `,
81
+ },
82
],
83
invalid: [
84
{