What problem does it solve?
Running the full test suite on every change wastes time in large monorepos. This Skill analyzes your git diff, classifies the scope and layer of changes, and runs only the Jest unit tests and Playwright integration specs that actually cover the modified code.
Core Features & Use Cases
- Selective Jest execution: Uses
--findRelatedTests to traverse the import graph and run only unit tests related to changed source files.
- Module-aware Playwright mapping: A Python script reads
meta.ts dependency declarations in __integration__/ directories to map changed modules to affected integration specs, with layer-aware filtering that skips Playwright for pure CSS or design-token changes.
- Plan caching: Persists analysis results to
.test-cache.json keyed by commit hash, so repeated runs on an unchanged tree skip straight to execution.
- Use Case: After editing a command handler in the
sales module, ask to run affected tests and get only the related Jest suites plus the Playwright specs for sales and its dependent modules, instead of all ~808 test files.
Quick Start
Ask the assistant to run only the tests affected by my current changes on this branch.