@simoncropp In Verify is there a way to force the extension of the files to be `.json` instead of `.txt` so I get syntax highlighting in the diff viewers? #dotnet#VerifyTests
@khalidabuhakmeh@simoncropp It's good but not ideal. 😊 If I'd map `*.txt` to JSON in Rider, it would - apply to all txt files anywhere even if they're not JSON - not work for team members - not work outside of Rider
@bitbonk@simoncropp - the map would be to “*.verified.txt” or “*.received.txt” - Team members should switch to Rider (just kidding) - Always Be in Rider!
@simoncropp@romanx I always want a folder named `Snapshots` in the same directory as the source file that contains the test. This seems to work. Is it the right way to do it?
@bitbonk@romanx not exactly. eventually "snapshot" would be resolve to a full path, which would use the environments current directory. and that might be inconsistent in CI. so you should be doing a getdirectory on the sourcefile parameter. and combining that with "snapshot". but given your scenario, i added a new feature that should make it easier for you https://github.com/VerifyTests/Verify/blob/main/docs/naming.md#usesourcefilerelativedirectory u will need to update your verify ref
Verify/docs/naming.md at main · VerifyTests/Verify
Verify is a snapshot tool that simplifies the assertion of complex data models and documents. - VerifyTests/Verify
@simoncropp@romanx So the bug is that `VerifyJson(jsonString).UseStrictJson()` doesn’t work? I have to apply `.UseStrictJson()` globally in the module initializer? (Can’t test it right now.)