Unit Testing

Writing, refactoring, reviewing, or running unit tests — fast, isolated checks that exercise one small exported contract from the caller's point of view. Triggers on mocks and fakes, fixtures, schema and codec tests, snapshot choices, coverage questions, assertion design, spec naming, or whether a behavior belongs in a unit test at all. For runner configuration and mocking APIs, use that runner's own capability — Jest, Vitest; for browser or device journeys, an end-to-end-testing one; for verification-evidence adequacy, a quality-assurance one. Covers refactor-surviving design, boundary fakes, and async assertions.

axross e69e6f3 8 files · 32.6 KB Updated

File contents

axross/skills/tree/main/skills/unit-testing commit e69e6f3bc6

Frequently asked questions

npx skillmds@latest add axross/unit-testing