You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SnapshotWithName (#72)
* Add SnapshotWithName
SnapshotWithName is similar to SnapshotMulti without appending the function name.
It is useful when you need full control of the snapshot filename.
* Fix typo in test description
Co-authored-by: Aaran McGuire <[email protected]>
* Update examples/advanced_test.go
Co-authored-by: Aaran McGuire <[email protected]>
Co-authored-by: Bradley Kemp <[email protected]>
Add an option to disable usage of stringer methods. (#66)
This is especially annoying for snapshotting custom errors that contain
some payload. The payload would arbitrary be dismissed which is
confusing.
fixes#45
Co-authored-by: Bradley Kemp <[email protected]>
Upgrade to go modules (#54)
* Use https://github.com/marwan-at-work/mod to upgrade
* Remove go dep
* Enable modules in CI
* Make GO111MODULE a global env variable
* Fix shadowed env variable
* Switch to golangci-lint
* Fix GO111MODULE value
Make SnapshotT() a no-op for (already) failed tests (#33)
* Make SnapshotT() a no-op for failed tests (#31)
* Reduce indentation
* Fix inverted if statement