Quality Assurance & Testing

Unit Testing

Write effective unit tests with Jest, Vitest, or pytest. Covers the test-doubles taxonomy (stub/spy/mock/fake), Arrange-Act-Assert, coverage threshold configuration and CI gating, snapshot testing, fake timers, and mutation testing with Stryker/mutmut. Use when: "unit test," "Jest," "Vitest," "pytest," "mock," "coverage threshold," "test doubles," "mutation testing," "fake timers," "snapshot test." Not for: interpreting coverage reports or finding coverage gaps — use coverage-analysis; AI generating the test code for you — use ai-test-generation; auditing existing tests for smells — use ai-qa-review; browser/component rendering assertions — use cypress-automation or visual-testing. Related: coverage-analysis, ci-cd-integration, ai-test-generation, shift-left-testing.

Publisher / source
petrkindlmann/qa-skills (found on skills.sh)
Upstream record
petrkindlmann/qa-skills
Version
Version 3
Published
Publication review
Approved for publication
Content fingerprint
6ae2bf6de212f3d2e1202f8964c56063cc22331d7b484e687a0b8c58992f9f21