#232
test: add diagnostic schema conformance snapshots
Summary
Add conformance snapshot tests for 10 core diagnostic codes. Each test is a minimal .0 source file paired with an .expected.json file that asserts the exact diagnostic output schema.
Diagnostic codes covered
app001, cgen004, err001, imp001, nam003, par100, std002, typ001, typ002, typ009
How it works
- Each
conformance/diagnostics/<code>.0is a minimal program that triggers that diagnostic - Each
conformance/diagnostics/<code>.expected.jsonasserts the diagnostic code, severity, and message pattern conformance/run.mjsis extended with a newdiagnosticstest type that validates snapshots
Validation
pnpm run conformanceAll existing conformance tests continue to pass. New diagnostic snapshots are verified on each run.
Motivation
The diagnostic schema is a core agent-facing contract (see #173). Having snapshot tests for each code makes it easy to catch regressions when diagnostic output format changes across versions.
Activity
5vercel[bot]reviewed5mo ago
Deployment failed with the following error:
The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.vercel[bot]reviewed5mo ago
@bradhallett is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.