fix: ignore WRN component examples in import validation
Quality / quality (ubuntu-latest) (push) Failing after 10m54s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-12 19:13:28 +05:30
parent 8e6dca0751
commit 7ba7c8a73f
5 changed files with 33 additions and 8 deletions
@@ -70,3 +70,14 @@ test("compiler-native reactive elements do not require application imports", ()
setCompileImportOptions(root, { mode: "explicit" });
expect(() => compileWrnArtifacts(page, 5)).not.toThrow();
});
test("component examples in comments do not require imports", () => {
const { root, page } = fixture();
writeFileSync(
page,
`// Usage: <Home title="Example" />
page Home { view { <main>Home</main> } }`,
);
setCompileImportOptions(root, { mode: "explicit" });
expect(() => compileWrnArtifacts(page, 6)).not.toThrow();
});