test(cli): compile every example of the import prompt #276
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!276
Loading…
Reference in a new issue
No description provided.
Delete branch "test/ai-spec-examples"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR 3 of the DX & authoring-aids plan (AI specs hygiene). Extends
packages/cli/tests/ai-spec-examples.test.ts(from #274) to every example ofgram import's prompt (gram-spec.ts), in three kinds (the ❌ being the marker):warningor above; frontmatter read key for key, no#in a value, no deprecated key (deprecatedFrontmatterKeysIn).UNDEFINED_REFERENCEalone tolerated.Fences are found at any indentation (closing on the same one), so the indented block under the
->&namerule is covered while the ```gram written after a ❌ opens nothing. Minimum counts per kind guard against a silently empty extraction. A last test requires every deprecated key ofFRONTMATTER_KEYSto be named in the prompt: it failed onyield/yields, now named as deprecated in the prose next toservings.The test no longer mentions the local, git-ignored gram-authoring skill: that check moved to a local script.
No changeset (internal tooling; the deprecation itself is announced by PR 2a).
Checks: red before the prose fix, green after; one deliberate mutation per kind fails the test; typecheck, biome, full
bun test(4112 pass, 0 fail); audit unchanged (127 flags).