Adds the footer, back-to-top button, skip link, placeholder routes, 404 and error pages inside the shell, plus per-page SEO from a single page registry (canonical URLs, Open Graph image, JSON-LD, generated sitemap.xml and robots.txt). Theme tokens and recipes replace repeated styling, the hero loads only the active and neighbouring slides, and the e-mail address is joined in the browser to keep it out of the HTML and bundle. Adds Vitest with property-based (fast-check) and axe tests, ESLint, security headers for dev and preview, Lighthouse CI and a `pnpm check` script that runs all quality gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
691 B
TypeScript
21 lines
691 B
TypeScript
import type { TestProject } from 'vitest/node';
|
|
|
|
// Kiest één seed voor alle property-tests van een run en logt die altijd,
|
|
// ook als alles slaagt (PBT-08). Opnieuw afspelen: FC_SEED=<seed> pnpm test
|
|
export default function setup(project: TestProject) {
|
|
const env = (
|
|
globalThis as { process?: { env: Record<string, string | undefined> } }
|
|
).process?.env;
|
|
const seed = Number(env?.FC_SEED ?? Math.floor(Math.random() * 2 ** 31));
|
|
console.log(
|
|
`\nfast-check seed: ${seed} (opnieuw: FC_SEED=${seed} pnpm test)\n`,
|
|
);
|
|
project.provide('fcSeed', seed);
|
|
}
|
|
|
|
declare module 'vitest' {
|
|
export interface ProvidedContext {
|
|
fcSeed: number;
|
|
}
|
|
}
|