import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import test from 'node:test'; const docsRoot = 'src/content/docs/useful-information'; test('Laptop Buying Advice publishes the newer hardware baseline without a dated warning', async () => { const content = await readFile(`${docsRoot}/laptop-buying-advice.md`, 'utf8'); assert.match(content, /16 GB/); assert.match(content, /512 GB/); assert.match(content, /Core i5-class or equivalent/i); assert.match(content, /M-series Mac/i); assert.match(content, /Nvidia[\s\S]*CUDA/i); assert.doesNotMatch(content, /:::caution\[Historical information\]/); });