$ X100_FAST=1 node --test --test-name-pattern="the last line finish prints|finish --json prints" test/closing-line.test.mjs
mutate closing-last
files lib/commands/finish.mjs (lines 43 to 49)
planted 3 edits, every one this command can make here.
killed    2. The check failed on a planted defect.
survived  1. The check passed with the defect in place.
invalid   0. The edit left code that does not parse, so it was not run.
score     2 of 3 caught of the defects that ran, 66.7%.

survivors. Each is a defect the check did not notice.
  lib/commands/finish.mjs:43  number: 2 becomes 3

next. Read each survivor: is it a gap in the check, or an edit that changes nothing? For a gap, add a case that fails with that defect in, then run this again. --min <percent> makes a lower score exit 1.

What this cannot show. A survivor is a defect the check did not notice, or an edit that changes nothing a person could see (an equivalent defect). Only a reader can tell which.
A count is about the defects planted and says nothing about the ones that were not.
Edits are single and come from a fixed list, so a defect that needs two is not measured.
The automatic edits read JavaScript and TypeScript. --edits takes a list of edits for any other language.

every defect
  killed    lib/commands/finish.mjs:43  condition: values.json becomes true. exit 1
  killed    lib/commands/finish.mjs:43  condition: values.json becomes false. exit 1
  survived  lib/commands/finish.mjs:43  number: 2 becomes 3
