# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="a report with no survivor|the progress line says" test/mutate.test.mjs
# defect: lib/mutate.mjs:600 condition: replaced becomes true
# exit: 1
# digest: dc40914d09b905c4
FAIL  mutate-report. a planted defect made the check fail at lib/mutate.mjs:600: condition: replaced becomes true (exit 1)
✖ a report with no survivor has no next step to give, and one that holds several runs says it once at the end (2.033042ms)
✔ the progress line says how many defects ran and how many are alive, about every five seconds and once at the end, and not at all for --json (0.876459ms)
ℹ tests 2
ℹ suites 0
ℹ pass 1
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2813.697458

✖ failing tests:

test at test/mutate.test.mjs:146:1
✖ a report with no survivor has no next step to give, and one that holds several runs says it once at the end (2.033042ms)
  AssertionError [ERR_ASSERTION]: the parts of a report are one blank line apart, and a part that is not there leaves no gap
      at TestContext.<anonymous> (file://<project>/test/mutate.test.mjs:166:10)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: 'mutate order\nfiles lib/pay.mjs\nplanted 1 edits, every one this command can make here.\nkilled    1. The check failed on a planted defect.\nsurvived  0. The check passed with the defect in place.\ninvalid   0. The edit left code that does not parse, so it was not run.\nscore     1 of 1 caught of the defects that ran, 100%.\n\n\n\nWhat 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.\nA count is about the defects planted and says nothing about the ones that were not.\nEdits are single and come from a fixed list, so a defect that needs two is not measured.\nThe automatic edits read JavaScript and TypeScript. --edits takes a list of edits for any other language.',
    expected: /\n\n\n/,
    operator: 'doesNotMatch',
    diff: 'simple'
  }
