feat: add AI discovery SEO and portal verification

This commit is contained in:
2026-07-12 23:23:32 +05:30
parent e7189b3295
commit dea22aa3da
6 changed files with 586 additions and 11 deletions
+24 -7
View File
@@ -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", () => {