Skip to content

`verify_as_json()` creates `.json` files instead of `.txt`

Compare
Choose a tag to compare
@isidore isidore released this 27 Aug 19:48
· 380 commits to main since this release

verify_as_json() creates .json files instead of .txt

This is a BREAKING CHANGE.

There are two ways to fix this.

1. re-approve the .json files

Either:

  1. Rename the .txt files to .json
  2. Move them over in your diff tool
  3. Use ReporterThatAutomaticallyApproves
    verify_as_json(result, options=Options().with_reporter(ReporterThatAutomaticallyApproves()))
  4. Use ReporterByCopyMoveCommandForEverythingToClipboard + paste into your terminal
    verify_as_json(result, options=Options().with_reporter(ReporterByCopyMoveCommandForEverythingToClipboard()))

2. Keep your .txt files backwards compatible

verify_as_json(result, options=Options().for_file.with_extension(".txt"))