fix(site/scripts): guard check-compiler main block from test imports (#23825)

This commit is contained in:
Danielle Maywood
2026-03-30 22:11:15 +01:00
committed by GitHub
parent adcea865c7
commit c33cd19a05
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ describe("shortenMessage", () => {
expect(shortenMessage("Single sentence.")).toBe("Single sentence");
});
it("returns (unknown) for empty input", () => {
it("preserves empty string and (unknown) sentinel", () => {
expect(shortenMessage("")).toBe("");
expect(shortenMessage("(unknown)")).toBe("(unknown)");
});