Outcome
Add a focused test or smoke assertion that keeps the Markdown report example output deterministic.
Likely files
examples/headless-workpaper/markdown-report.ts
examples/headless-workpaper/README.md
- Optional new test under
scripts/__tests__/ if you choose to run the example from Vitest
Suggested approach
The example already prints JSON with verified: true and a markdown table. Add a small automated check that runs the example or imports its report formatter and asserts the table contains the expected rows:
Committed MRR
Weighted pipeline MRR
Target gap
Keep the output format stable. Do not rewrite the example into a framework-specific demo.
Acceptance proof
Run:
pnpm --dir examples/headless-workpaper run markdown-report
Also run the focused test command for the assertion you add.
Scope check
Notes
This is a small code/test starter for contributors who want to work on runnable examples without touching formula internals.
Outcome
Add a focused test or smoke assertion that keeps the Markdown report example output deterministic.
Likely files
examples/headless-workpaper/markdown-report.tsexamples/headless-workpaper/README.mdscripts/__tests__/if you choose to run the example from VitestSuggested approach
The example already prints JSON with
verified: trueand a markdown table. Add a small automated check that runs the example or imports its report formatter and asserts the table contains the expected rows:Committed MRRWeighted pipeline MRRTarget gapKeep the output format stable. Do not rewrite the example into a framework-specific demo.
Acceptance proof
Run:
Also run the focused test command for the assertion you add.
Scope check
Notes
This is a small code/test starter for contributors who want to work on runnable examples without touching formula internals.