feat: add AI discovery SEO and portal verification
This commit is contained in:
+24
-7
@@ -77,19 +77,36 @@ test("site includes core guides and production configuration", () => {
|
||||
test("language reference covers directives, events, loops, and conditionals", () => {
|
||||
const source = readFileSync(join(root, "app", "pages", "language.wrn"), "utf8");
|
||||
for (const section of [
|
||||
"events",
|
||||
"anatomy",
|
||||
"state",
|
||||
"server",
|
||||
"directives",
|
||||
"conditionals",
|
||||
"loops",
|
||||
"components",
|
||||
"forms",
|
||||
"realtime",
|
||||
"native",
|
||||
"security",
|
||||
"errors",
|
||||
]) {
|
||||
expect(source).toContain(`id="${section}"`);
|
||||
}
|
||||
expect(source).toContain("data-show");
|
||||
expect(source).toContain("@mobile-click");
|
||||
expect(source).toContain("mobile behavior");
|
||||
});
|
||||
|
||||
test("portal exposes truthful access and machine discovery", () => {
|
||||
expect(readFileSync(join(root, "app", "pages", "index.wrn"), "utf8")).toContain(
|
||||
"Private Developer Preview",
|
||||
);
|
||||
expect(readFileSync(join(root, "app", "pages", "access.wrn"), "utf8")).toContain(
|
||||
"private registry credentials",
|
||||
);
|
||||
for (const asset of [
|
||||
"robots.txt",
|
||||
"sitemap.xml",
|
||||
"llms.txt",
|
||||
"llms-full.txt",
|
||||
"docs-index.json",
|
||||
]) {
|
||||
expect(existsSync(join(root, "public", asset))).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
test("package index includes searchable category filters", () => {
|
||||
|
||||
Reference in New Issue
Block a user