Nakodo's public side is 106 URLs, of which 90 are typed objects in one registry: slug, title, description, keywords, summary, sections, FAQs, related pages. Every one of them generates four tests, so the suite grows when the content grows and nobody has to remember to test a page.

Last week I added 27 of them in one commit: eight comparison pages, six guides, six email and brief templates, five feature pages, a blog post and a calculator. The test suite went from 623 tests in 75 suites to 732 in 102. I wrote exactly one of the 109 new tests.

This is what the other 108 caught, and the one rule that had to be amended rather than obeyed.

Where 108 comes from

for (const { path, page } of ENTRIES) { describe(path, () => { test("metadata fits the search result", () => { /* ... */ }); test("answers first and has substance", () => { /* ... */ }); test("ids, dates and links are valid", () => { /* ... */ }); test("follows the voice rules", () => { /* ... */ }); }); } 

63 entries times four is 252. 90 times four is 360. The 27 new suites are the 27 new pages, one describe each, and 108 of the 109 new tests are those four checks repeated. The remaining one is a hand-written test about the auth boundary from the same commit.

I have written about what those four checks hold before, so here they are only as a list: the search result fits, the page is not thin, the ids and dates and links are valid, the voice rules hold. What I had never done is watch 27 pages go through them at once.

What 27 pages look like against the floors

Measured over just the new entries:

words of body copy 43,051
mean per page 1,594
thinnest page 1,068 words, against a floor of 600
sections 194
FAQ entries 129
inline links, each resolved against the registry 400

The floors never fired. Not one page came near 600 words, because a page that answers a search question properly is about 1,500, and the floor exists to catch the page you wrote in a hurry rather than the page you wrote.

The ceilings are a different story. The whole site, 90 pages:

  • 10 titles are exactly 50 characters, which is MAX_TITLE. The median is 45.
  • 6 descriptions are exactly 158, which is MAX_DESCRIPTION. 22 of 90 are within two characters of it. The median is 153.

So the constraints that bite are the two with a hard upper bound, and the writing presses right up against both. 50 rather than 60 for a title because the layout appends the brand, and the 158 is there because Google truncates and a truncated description is a sentence that stops.

And the check that earned its keep on this commit is the one that compares pages against each other rather than against a number:

test("titles, H1s and descriptions are unique across the site", () => { for (const key of ["metaTitle", "h1", "metaDescription", "label"] as const) { const seen = new Map<string, string>(); for (const { path, page } of ENTRIES) { const v = page[key].toLowerCase(); assert.ok(!seen.has(v), `${key} of ${path} duplicates ${seen.get(v)}`); seen.set(v, path); } } }); 

One of the new guides is how to find influencers, and the site already had how to find them on YouTube, on TikTok, on Instagram, and locally. Four keys times 90 pages is where near-duplicate titles get caught, and a family of pages whose names differ by one word is exactly where they happen.

The rule that bent

Our content uses two words for the same people. "Influencer" is what somebody types into a search box. "Creator" is what the body copy says, everywhere, because that is the word the people being written about actually use. The split is held by a test rather than by discipline: the word is allowed in nine search-facing fields and banned in body copy.

Then I wrote a comparison page about a company called influencers.club.

✖ follows the voice rules AssertionError: say "creator" in body copy: What influencers.club says it does 

That is a section heading, and it is correct English. The company is called that. The test was right about the characters and wrong about the meaning, which is the failure mode of every linter that reads prose.

Three ways out:

  1. Skip the test for that page. Cheapest, and it turns off every voice check on a page that names a competitor, which is precisely the page where tone matters most.
  2. Skip the test for headings. Worse. It would cover one occurrence and open a hole across 90 pages.
  3. Remove the name from the text before testing the text.
// Company names that contain the word are names, not our wording. const NAMES = /\binfluencers\.club\b/gi; for (const t of bodyTexts(page).map((x) => plain(x).replace(NAMES, ""))) assert.ok(!INFLUENCER.test(t), `say "creator" in body copy: ${t.slice(0, 90)}`); 

Two details in four lines. The g flag, because a page about a company says its name more than once per paragraph and a non-global replace would only clear the first. And plain(x) runs before the replace, so the inline link markup is rendered to the text a reader sees first, which means the name is stripped whether it is written plainly or used as a link label.

What I like about this shape is what it does not do. The exemption is attached to the string, not to the page and not to the field. Every other sentence on that page still has to say "creator". Any future page may name the same company. And if a competitor turns up whose name contains "influencer" in some other form, the diff is one more alternation in one regex, with a comment above it saying what kind of thing is being excused.

What I do not like is that it is invisible. A one-word carve-out inside a negative assertion is the sort of line somebody deletes while tidying, the test stays green because the offending page is five directories away, and nothing explains itself until the build breaks. The comment is doing load-bearing work.

What it costs to run

732 tests in 3.0 seconds, no test framework beyond node:test and tsx. 360 of those tests, nearly half the suite, are assertions about prose. That ratio sounds absurd for a product whose actual job is finding creators and emailing them, and it is the correct ratio, because content pages are the part of the system with no runtime behaviour to catch mistakes: a thin page, a duplicate title or a dead internal link works perfectly in a browser and simply never ranks.

Three seconds is also why this scales. The run before the commit was 623 tests in 3.9 seconds and the run after is 732 in 3.0, which is to say the 108 new tests cost less than the noise between two runs on the same laptop. The day that stops being free, the fix is to run the generated half only when src/content changed, and there is nothing clever about it.

Two gaps I found while counting

Writing this post surfaced two things the gate does not check:

Related links are one-directional. Every page lists at least two related pages, and the test asserts each one resolves and that no page relates to itself. Nothing asserts the reverse, so page A can point at B while B has never heard of A. Over 90 pages and 400 inline links that is a slow leak of the structure the links were supposed to create.

Nothing checks a page is listed anywhere. A new page is in the sitemap and reachable by URL the moment it is in the registry, but whether a human can get to it depends on a hub listing it, and the hubs are hand-curated arrays. The guides hub has a catch-all group for exactly this reason:

{ heading: "More guides", items: guides.filter((e) => !listed.has(e.page.slug)).map(card) }, 

That pattern is the right one and it only exists on one hub. The test is easy and I have not written it: every entry appears in at least one hub's groups.

If you want to see what the two halves of the word rule look like in practice, open the guide to finding influencers and read the title, then read the body. Then open the page about influencers.club, which is the only page on the site whose body copy contains that word at all: 10 times, every one of them a name, plus 17 more in the fields where the searcher's word is allowed anyway.