Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
INDEXABLE_VERTICAL_SLUGS,
|
|
VERTICALS,
|
|
VERTICAL_SLUGS,
|
|
getVertical,
|
|
isIndexableVertical,
|
|
relatedVerticals,
|
|
} from "@/lib/seo/verticals";
|
|
import { buildSitemapEntries } from "@/lib/seo/urls";
|
|
|
|
const allText = (value: unknown): string => JSON.stringify(value);
|
|
|
|
describe("video-ads verticals", () => {
|
|
it("has about twenty unique verticals, all indexable", () => {
|
|
expect(VERTICALS.length).toBeGreaterThanOrEqual(20);
|
|
expect(new Set(VERTICAL_SLUGS).size).toBe(VERTICAL_SLUGS.length);
|
|
expect(INDEXABLE_VERTICAL_SLUGS).toEqual(VERTICAL_SLUGS);
|
|
});
|
|
|
|
it("gives every vertical three unique hooks of its own", () => {
|
|
const lines = VERTICALS.flatMap((vertical) => vertical.hooks.map((hook) => hook.line));
|
|
expect(new Set(lines).size).toBe(lines.length);
|
|
for (const vertical of VERTICALS) expect(vertical.hooks).toHaveLength(3);
|
|
});
|
|
|
|
it("marks a thin entry noindex", () => {
|
|
const thin = { ...VERTICALS[0]!, hooks: VERTICALS[0]!.hooks.slice(0, 1) };
|
|
expect(isIndexableVertical(thin)).toBe(false);
|
|
});
|
|
|
|
it("never uses fabricated stats, emoji or competitor names", () => {
|
|
const text = allText(VERTICALS);
|
|
expect(text).not.toMatch(/\d+\s?%/);
|
|
expect(text).not.toMatch(/\p{Extended_Pictographic}/u);
|
|
expect(text).not.toMatch(/\b(canva|capcut|invideo|synthesia|heygen|arcads|creatify|veed|zeely)\b/i);
|
|
});
|
|
|
|
it("lists indexable pages in the sitemap and cross-links other verticals", () => {
|
|
const urls = buildSitemapEntries(new Date(0)).map((entry) => entry.url);
|
|
expect(urls).toContain("https://menivor.com/video-ads");
|
|
for (const slug of INDEXABLE_VERTICAL_SLUGS) expect(urls).toContain(`https://menivor.com/video-ads/${slug}`);
|
|
const related = relatedVerticals("gym");
|
|
expect(related.length).toBe(6);
|
|
expect(related.some((vertical) => vertical.slug === "gym")).toBe(false);
|
|
expect(getVertical("nope")).toBeUndefined();
|
|
});
|
|
});
|