**The derived `pkg` had no coverage** — the one line in this file that
computes rather than defaults, and the one that fails silently:
`withClick` uses it only to choose a directory, so a wrong derivation
surfaces much later as a missing tempo map. The reviewer's A/B
(`pkg: ''`) left the click tests green; it now fails a test that asserts
the derivation, an override of it, and the path passing through
untouched.
**The defaulting trade is now stated rather than discovered.** A future
required field gets whatever default is written here, so a test can
assert on a value nobody chose. That is the same question the compile
errors asked at every call site — the difference is that it is answered
once, in the open, by whoever adds the field. The comment says to give a
new field a default only where every caller would be indifferent, and
otherwise leave it required like `path`.
**And `exclude` is documented as what it is.** It filters the root file
set, not emission: src/testing/ stays out of dist/ only while nothing in
src/ imports it. Verified the exclusion still works (`dist/testing`
absent after a build) and wrote down the condition it depends on.
Hand-built
Playableliterals in tests have broken three times running,each time in a way the usual signals missed:
sha256in Watch chunk 2: play --loop --watch, atomic materialize, docs #35 — invisible to vitest (which does not typecheck) andto
pnpm build(which excludes tests), so every signal was green.committedin bloom export: build a label, put a versioned file where a human works #39.field too, a type error neither branch's own CI could see, because a
conflicting pull request has no merge ref to build.
playable({ path })fills every required field. The two call sites inclick.test.tsuse it.The property, verified rather than assumed
I added a temporary required field to
Playableand checked who breaks:play.tsis real code and has to change anyway. No test file does.Two small decisions
pathhas no default. A Playable's job is to name a file, anddefaulting it would turn a missing fixture into an ENOENT somewhere far
away instead of a compile error at the call site.
The helper lives in
src/testing/and is excluded fromtsconfig.build.json, so it does not ship indist.*.test.tswasthe only exclusion before; a helper that is not itself a test needed its
own.
pnpm typecheckexit 0, 301/301. Built in a git worktree offmain, sothe shared checkout — whose
distthe globalbloomsymlinks into —was never switched or rebuilt.
Note
Low Risk
Test-only helper and test refactors; no production runtime behavior changes.
Overview
Adds
playable()insrc/testing/playable.tsso tests can build a fullPlayablewith defaults forlabel,pkg,sha256, andcommitted, whilepathstays required at the call site.click.test.tsnow usesplayable({ path: src })(and overridessha256in the re-hash test) instead of hand-written literals.tsconfig.build.jsonexcludessrc/testing/**so the helper is not emitted todistalongside test files.Reviewed by Cursor Bugbot for commit f3a353e. Configure here.