2.0 KiB
2.0 KiB
Tasks — testing-spec-conformance
- Tighten
scripts/openspec-conformance.tsto match change folders by**Package**:frontmatter only (drop folder-name token regex). Drop active-changespecs/<cap>/pull-ins for changes that don't name this package. - Re-run
bun scripts/openspec-conformance.ts @suaveplan/testingand confirm req count drops from 226 → 35 → (after Verified-by folding) 0 errors. - Thread
<TBody = unknown>throughTestRequest,TestResponse,RequestBuilderState,ResponseBuilderState,RequestBuilder,ResponseBuilder. Default preservesunknownfor zero-config callers. - Thread
T = unknownthroughMutableFixtureState(internal but published in dist d.ts). - Replace
Date.now()/performance.now()fallbacks inmeasureTimeandwithObservabilitywith the injectableClocksubstrate (defaultClockdefault). - Add
tests/spec-conformance.spec-conformance.test.tscovering: generic threading viaexpectTypeOf, package.jsonsideEffects: false, every public surface has a subpath export, module-scope determinism scan, schema modules don't import siblings. - Add
**Verified by:**lines under every### Requirement:block inopenspec/specs/testing/spec.md. Citations name realit(...)titles. - Correct stale
packages/universal/testing/references in the spec topackages/dev/testing/. - Verify
bunx vitest runis green (295 + 7 new = 302 tests). - Verify
bunx turbo build --filter=@suaveplan/testingregenerates dist with the new generics. - Verify
bun scripts/openspec-conformance.ts @suaveplan/testingPASS, 0 errors. - Pre-publish gate:
bunx turbo lint typecheck test --filter=@suaveplan/testing. - Coverage gate:
bunx turbo test:coverage --filter=@suaveplan/testing(Istanbul ≥ 100/100/100/100 per project policy). - On archive: fold spec deltas into
openspec/specs/testing/spec.md(already folded inline) and move this folder toopenspec/archive/<yyyy-mm-dd>-testing-spec-conformance/.