# made by 100x verify mutate
# command: X100_FAST=1 node --test --test-name-pattern="a list of edits written by hand is read" test/mutate.test.mjs
# defect: lib/mutate.mjs:327 word: 'utf8' becomes 'EISDIR'
# exit: 1
# digest: f51dbf9d5891f947
FAIL  mutate-edits-file. a planted defect made the check fail at lib/mutate.mjs:327: word: 'utf8' becomes 'EISDIR' (exit 1)
✖ a list of edits written by hand is read with a sentence for each fault in it (2301.200834ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3465.101167

✖ failing tests:

test at test/mutate.test.mjs:219:1
✖ a list of edits written by hand is read with a sentence for each fault in it (2301.200834ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
  + actual - expected
  
  + [
  +   'cannot read <tmp>/100x-test-H9bEHq/edits.json: it cannot be read. The file holds a list of edits, such as [{"file": "src/pay.py", "find": "amount < 1", "replace": "amount < 0", "why": "the limit moved"}]'
  + ]
  - []
  
      at TestContext.<anonymous> (file://<project>/test/mutate.test.mjs:230: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: true,
    code: 'ERR_ASSERTION',
    actual: [ 'cannot read <tmp>/100x-test-H9bEHq/edits.json: it cannot be read. The file holds a list of edits, such as [{"file": "src/pay.py", "find": "amount < 1", "replace": "amount < 0", "why": "the limit moved"}]' ],
    expected: [],
    operator: 'deepStrictEqual',
    diff: 'simple'
  }
