Codex TypeScript Library Testing for Public Runtime and Type Contracts
Protect library exports with deterministic runtime, type-inference, and consumer-facing tests. Choose cases based on public behavior.
中文Install in Codex
Codex with an agentsmesh or target TypeScript library checkout and its existing test and type-check tools.
- Open the pinned GitHub original and retain the complete `.agents/skills/library-testing/` directory in the checkout.
- Open Codex in that checkout and invoke `$library-testing` with the example task and desired output.
Example task
Give `$library-testing` an exported `groupBy` function in a practice library. Request an empty-array runtime test and a return-type inference case.What to check
The checks protect both observed output and the published type, using the public entrypoint.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why test through package exports?
Consumers depend on those contracts. Export-level tests remain useful when internal files move.