docs: publish package usage examples for 0.2.24

This commit is contained in:
2026-07-13 20:58:28 +05:30
parent b07ef5058a
commit 379553bdf7
79 changed files with 1542 additions and 894 deletions
+9
View File
@@ -60,6 +60,15 @@ test("every package page contains installation, guide, and complete API sections
}
});
test("every package page shows multiple named usage examples", () => {
for (const name of expected) {
const source = readFileSync(join(packagePages, `${name}.wrn`), "utf8");
expect(source.match(/class="example-card"/g)?.length ?? 0).toBeGreaterThanOrEqual(2);
expect(source).not.toContain("<h3>Example 1</h3>");
expect(source).not.toContain(`import * as packageApi from "@wrnexus/${name}"`);
}
});
test("site includes core guides and production configuration", () => {
for (const route of [
"index.wrn",