paniolo-vitest-test-hook-best-practices
Installation
SKILL.md
Requires: file-read, terminal (test runner). No network access needed.
Also load:
vitest-test-best-practices/SKILL.md —
hook tests must follow all conventions from the general skill (AAA pattern, named constants,
mocking order, toStrictEqual, lint rules) in addition to the hook-specific rules here.
Unit Testing — React Hooks
Use When
Use this skill when:
- Writing or editing tests for any
use*.ts/use*.tsxhook. - Validating hook behavior, side effects, and cleanup logic.
Execution workflow: