Repository metrics
- Stars
- (167 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Removed the template because this is a feature request rather than a bug report.
It would be useful to have an option to fail an assertion, rather than generate a snapshot, if a snapshot is missing. This is especially useful for CI. It's also possible I'm missing something here but in local dev with the latest version of KotlinSnapshot, just deleting a snapshot will recreate it on the next test, which could create false negatives (no failure? false positive success?).
Jest's default behavior is not to create snapshots without --updateSnapshots which I think is safe, but even just a flag would be useful.
Please point me in the right direction if I'm missing something, which is totally possible, but it looks like the answer is currently no: https://github.com/pedrovgs/KotlinSnapshot/blob/69fba61ca93080866a7ee90713595e1ead0bf1ba/core/src/main/kotlin/com/karumi/kotlinsnapshot/core/Camera.kt#L28-L31