Skip to content

Commit ab6146f

Browse files
fixup! perf(web): ChatView joins the strict React Compiler list
1 parent c42ba54 commit ab6146f

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

‎apps/web/src/reactCompiledFiles.test.ts‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ function expandPattern(pattern: string): string[] {
2323
// Lint reports most compiler bailouts, but not every one (try/finally, throw
2424
// inside try). A skipped file still builds, just unmemoized, so check the output.
2525
describe("React Compiler coverage", () => {
26-
it.each(REACT_COMPILED_FILES.flatMap(expandPattern))(
27-
"compiles %s",
28-
async (file) => {
29-
const absolute = NodePath.join(repoRoot, file);
30-
const result = await transform(absolute, NodeFS.readFileSync(absolute, "utf8"), {
31-
jsx: { runtime: "automatic", development: false, refresh: false },
32-
reactCompiler: { reportDiagnostics: true },
33-
});
34-
const bailouts = result.errors.map((error) => error.codeframe ?? error.message);
35-
expect(bailouts).toEqual([]);
36-
},
37-
);
26+
it.each(REACT_COMPILED_FILES.flatMap(expandPattern))("compiles %s", async (file) => {
27+
const absolute = NodePath.join(repoRoot, file);
28+
const result = await transform(absolute, NodeFS.readFileSync(absolute, "utf8"), {
29+
jsx: { runtime: "automatic", development: false, refresh: false },
30+
reactCompiler: { reportDiagnostics: true },
31+
});
32+
const bailouts = result.errors.map((error) => error.codeframe ?? error.message);
33+
expect(bailouts).toEqual([]);
34+
});
3835
}, 120_000);

0 commit comments

Comments
 (0)