Codex fncts Collection Tests with Pipeable Assertions
Write fncts base-package tests with nested suites and pipeable assertions for collection behavior and boundaries.
中文Install in Codex
Open fncts in Codex and locate the packages/base suites with the project's ambient types and custom testing wrappers.
- Review `.agents/skills/testing-base/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/testing-base/` in your project and save the reviewed file as `.agents/skills/testing-base/SKILL.md`.
- Start Codex from that project's root, then type `$testing-base` and select the matching skill.
Example task
Design a collection split case and identify follow-up boundaries.
{"method":"splitAt","items":[2,4,8,16],"index":1,"expected":[[2],[4,8,16]]}What to check
Plan `splitAt(1)` with `.assert(deepEqualTo(...))` and expected contents `[[2],[4,8,16]]`. Follow up with empty and single-item input cases.
Original SKILL.md on GitHub · Updated
Frequently asked question
When should I choose structural or strict equality?
Use structural comparison for arrays and tuples. Values with custom equality can use strictEqualTo.