Summary
Follow-up to issue #47: support --manifest pointing at a Playwright .ts / .tsx spec without a separate YAML path argument.
Desired behavior
- Sibling YAML auto-discovery:
lesson.spec.ts → try lesson.spec.docgen.yaml and lesson.docgen.yaml.
- Inline contract: Parse
test.info().annotations.push({ type: "docgen", description: ... }) per test() block; support JSON.stringify({...}) (with trailing commas) and JSON string description.
- Disambiguation:
path.spec.ts::Test title or docgen demo-function --manifest path.spec.ts --grep "..." when multiple docgen annotations exist.
- Merge rules: When YAML sidecar is used with
kind: playwright, default demonstration.spec to the TS file and fill demonstration.grep from CLI/path::title when omitted.
Implementation
Tracked in branch cursor/ts-manifest-discovery-fcf7 (PR to follow).
Summary
Follow-up to issue #47: support
--manifestpointing at a Playwright.ts/.tsxspec without a separate YAML path argument.Desired behavior
lesson.spec.ts→ trylesson.spec.docgen.yamlandlesson.docgen.yaml.test.info().annotations.push({ type: "docgen", description: ... })pertest()block; supportJSON.stringify({...})(with trailing commas) and JSON stringdescription.path.spec.ts::Test titleordocgen demo-function --manifest path.spec.ts --grep "..."when multiple docgen annotations exist.kind: playwright, defaultdemonstration.specto the TS file and filldemonstration.grepfrom CLI/path::titlewhen omitted.Implementation
Tracked in branch
cursor/ts-manifest-discovery-fcf7(PR to follow).