Releases: mnemnion/ohsnap
Dependency bump: Pretty v0.10.4
API refactor
This version changes interaction with ohsnap
. Now snapshots are only created with oh.snap
, and the choice of pretty
or .fmt
is made by using .expectEqual
or .expectEqualFmt
.
This also adds .show
and .showFmt
, which print the snapshot or diff without treating them as a test.
Further API changes are considered unlikely, and no further features are planned. That leaves dependency updates, which will continue indefinitely.
Bugfix for stack overflow in diff code
That's it, that's the release.
Dependency update
No changes to ohsnap
proper.
Usability Improvements
By which I mean, the module build now includes the dependencies, making it er. Usable.
Switch to use of splitScalar
This will become necessary in 0.14.0, and is backward compatible as far
as 0.12.0, which is far enough. It may be further than that, for all I
know.
Better regex handling
The regex-which-finds-regex now limits its search to a single line of the test string.
Also, the use/mention distinction is resolved in the following way: if the regex pattern is already identical to the string, we accept that as a match. This proved to be useful in ohsnap
's test suite, and is clearly correct behavior: the regexen are for excluding differences between the test string and the result string, and if the regex itself is not such a difference, there's nothing to exclude.
Initial Release
Implements a basic, but featureful, snapshot testing library.