From 48e709e7ad4b0f9936455e5556f7b0d13a8ae15e Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Fri, 3 Nov 2023 16:32:53 -0400 Subject: [PATCH] [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 --- .../__tests__/ReactForgetDiagnostics-test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts b/compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts index 20e66a55d1..d42e4ac051 100644 --- a/compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts +++ b/compiler/packages/eslint-plugin-react-forget/__tests__/ReactForgetDiagnostics-test.ts @@ -71,6 +71,14 @@ const tests: ForgetTestCases = { } `, }, + { + name: "Classes don't throw", + code: normalizeIndent` + class Foo { + #bar() {} + } + `, + }, ], invalid: [ {