Skip non-identifier React keys in shim test

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-05-15 13:08:17 -05:00
1 parent 0cbb7407cb
commit ac390c3f50
1 file changed
+1
+1
View File
@@ -312,6 +312,7 @@ describe("plugin React shim", () => {
for (const name of Object.keys(React).sort()) {
if (name === "default") continue;
if (!/^[A-Za-z_$][\w$]*$/.test(name)) continue;
expect(source).toContain(`export const ${name} = R.${name};`);
}