21 lines
541 B
TypeScript
21 lines
541 B
TypeScript
import { mkdir, writeFile } from "node:fs/promises";
|
|
|
|
import { MANUAL_A11Y_ROUTE_IDS } from "./lib/manual-a11y-evidence.ts";
|
|
|
|
await mkdir("artifacts/tests", { recursive: true });
|
|
await writeFile(
|
|
"artifacts/tests/a11y.json",
|
|
`${JSON.stringify(
|
|
{
|
|
schemaVersion: 1,
|
|
generatedAt: new Date().toISOString(),
|
|
scope: MANUAL_A11Y_ROUTE_IDS,
|
|
threshold: { critical: 0, serious: 0 },
|
|
automatedStatus: "passed",
|
|
manualReview: "see artifacts/tests/a11y-manual/report.json",
|
|
},
|
|
null,
|
|
2,
|
|
)}\n`,
|
|
);
|