docs: publish package usage examples for 0.2.24
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user