`verify_as_json()` creates `.json` files instead of `.txt`
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:
- Rename the
.txt
files to.json
- Move them over in your diff tool
- Use
ReporterThatAutomaticallyApproves
verify_as_json(result, options=Options().with_reporter(ReporterThatAutomaticallyApproves()))
- 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"))