What problem does it solve?
Tests across unit, integration, and end-to-end levels are often inconsistent, hard to adopt, and poorly documented. This skill provides a structured approach that covers test type definitions, naming conventions, mocking strategies, framework setup, and CI integration to raise overall test quality and reduce flaky tests.
Core Features & Use Cases
- Define test type categories: unit, integration, e2e, and snapshot tests for clear scope.
- Enforce Arrange-Act-Assert structure and precise naming conventions to improve readability and maintenance.
- Provide mocking and dependency-injection guidance to isolate logic and enable fast, reliable tests.
- Offer framework setup guidance with Vitest, Jest, and Playwright examples to cover frontend and backend codebases.
- Establish CI-ready practices including test isolation, coverage thresholds, and reporting.
Quick Start
Set up a Vitest-based test suite and begin writing unit, integration, and E2E tests following the AAA pattern.