skeletest-0.3.0: test/Skeletest/Internal/__snapshots__/SnapshotSpec.snap.md
# test/Skeletest/Internal/SnapshotSpec.hs
## detects corrupted snapshot files
```
./ExampleSpec.hs
should error: ERROR
╔══════════════════════════════════════════════════════════════════════════════╗
║ Snapshot file was corrupted: ./__snapshots__/ExampleSpec.snap.md ║
╚══════════════════════════════════════════════════════════════════════════════╝
```
## renders JSON values
```json
{
"hello": [
"world",
1
]
}
```
## shows helpful failure messages
```
./ExampleSpec.hs
fails: FAIL
╔══════════════════════════════════════════════════════════════════════════════╗
║ ./ExampleSpec.hs:7: ║
║ | ║
║ | unlines ["new1", "same1", "same2", "new2"] `shouldSatisfy` P.matchesSnap ║
║ shot ║
║ | ^^^^^^^^^^^^^^^ ║
║ ║
║ Result differed from snapshot. Update snapshot with --update. ║
║ --- expected ║
║ +++ actual ║
║ @@ -1,4 +1,4 @@ ║
║ +new1 ║
║ same1 ║
║ -old1 ║
║ same2 ║
║ -old2 ║
║ +new2 ║
╚══════════════════════════════════════════════════════════════════════════════╝
```