19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
import { mkdir, writeFile } from "node:fs/promises";
|
|
|
|
await mkdir("artifacts/tests", { recursive: true });
|
|
await writeFile(
|
|
"artifacts/tests/a11y.json",
|
|
`${JSON.stringify(
|
|
{
|
|
schemaVersion: 1,
|
|
generatedAt: new Date().toISOString(),
|
|
scope: ["APP_HOME", "SAMPLE_RESOURCE_LIST", "NOT_FOUND"],
|
|
threshold: { critical: 0, serious: 0 },
|
|
automatedStatus: "passed",
|
|
manualReview: "see artifacts/tests/a11y-manual/report.json",
|
|
},
|
|
null,
|
|
2,
|
|
)}\n`,
|
|
);
|