1.2 KiB
name, description, disable-model-invocation, metadata
| name | description | disable-model-invocation | metadata | ||||
|---|---|---|---|---|---|---|---|
| migrate-to-shoehorn | Replace suitable TypeScript test assertions with an admitted partial-fixture helper. | true |
|
TypeScript test fixture migration
Use this procedure only for an assigned change to TypeScript tests. Inspect the affected assertions and the project's dependency policy before editing. If @total-typescript/shoehorn is not installed, use the Implementer's admitted dependency-acquisition path; if that path is unavailable, report the missing prerequisite. Do not install through an unapproved network command.
Replace a partial object assertion with fromPartial when the supplied properties should still type-check. Use fromAny only for an intentional invalid-input test, and make that purpose visible in the test. Preserve complete fixtures when they express the behavior better. Keep production code free of the helper.
Run focused tests and type checking on the changed test area. State which assertions changed and whether the tests still exercise the intended failure and success paths. This migration does not weaken a behavior contract or count as owner-verified validation by itself.