// @requirements REQ-PRODUCT-FORM-PERMISSIONS REQ-PRODUCT-ASTRO REQ-PRODUCT-SAFE-CONTENT import {test} from 'node:test'; import assert from 'node:assert/strict'; import {readFile,mkdtemp,writeFile,rm} from 'node:fs/promises'; import {renderLegalDocument} from 'notabenda'; import {astroFiles} from '../../../examples/astro/build.mjs'; import {publicConfig} from '../../../examples/astro/src/lib/config.mjs'; test('real Astro builds script-free exact structured documents and a self-hosted interactive navigation example',async()=>{ const files=await astroFiles(); const {JSDOM}=await import('jsdom'); assert.ok(files['assets/example-pages.css']); for(const kind of ['privacy','cookies','terms']){ const html=files[`astro/${kind}/index.html`];assert.ok(html);assert.doesNotMatch(html,/]*hidden/); assert.match(html,/