Add unit tests for the current change using the repo test skill and colocated files.
Install
npx skills add https://github.com/blockmatic/basilic-skills --skill w-unitSKILL.md
Cover the requested behavior with unit tests. Follow vitest-v5 (or the stack's test skill) and existing file conventions. Do not chase coverage percentage.
- Read neighboring tests and the test skill. Colocate
*.test.tsbeside the implementation. - Test the behavior that can fail: public API, error paths, and the regression this change needs.
- Mock only at documented boundaries. Prefer real types and factories the repo already uses.
- Run the focused file, then the package test script.
- Docs:
/w-docsif behavior or commands changed.
Related skills
w-a11yblockmaticAudit UI against repository a11y docs and tests; do not invent a WCAG level.w-api-docsblockmaticRefresh API docs from the owning schema source; never edit generated OpenAPI by hand.w-api-testblockmaticAdd API tests that exercise public HTTP behavior against existing harnesses.w-architectureblockmaticPlan an implementation structure; durable decisions belong in ADRs and architecture docs.