unit-testing
Installation
SKILL.md
Discovery Questions
- Framework: Jest, Vitest, or pytest? Check
package.jsonorpyproject.toml. - Coverage tooling: Already configured? Look for
jest.config.*,vitest.config.*,.nycrc,[tool.coverage]. - Mocking strategy: Manual mocks, auto-mocking, or dependency injection? Check for
__mocks__/dirs or DI containers. - Existing conventions: Check
.agents/qa-project-context.mdfirst for project-specific guidelines.
Core Principles
1. Test behavior, not implementation. Verify what code does, not how. Refactoring internals should not break tests.
Related skills