← Registry
Loop Official

Coverage Until Threshold

Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.

Loop

Goal
coverage meets the target threshold (default 80%) with all tests passing
Exit when
coverage threshold is met and tests exit 0

Check between iterations

npm test -- --coverage
$

Kickoff prompt

Start the "Coverage Until Threshold" loop. Goal: coverage meets the target threshold (default 80%) with all tests passing Max iterations: 12 Between iterations run: npm test -- --coverage Exit when: coverage threshold is met and tests exit 0 Step 1: Add focused tests until coverage meets your threshold, without changing production behavior unnecessarily.