Skip to content

Releases: mnemnion/ohsnap

Dependency bump: Pretty v0.10.4

23 Aug 15:23
v0.3.1
0cd85a8
Compare
Choose a tag to compare

This adds 'c'haracter-style printing for any u21 as a default. As with all pretty options, this can be changed by assigning a field in oh.pretty_options.

API refactor

06 Aug 18:15
v0.3.0
930f43e
Compare
Choose a tag to compare

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

06 Aug 00:45
v0.2.2
1efcd91
Compare
Choose a tag to compare

That's it, that's the release.

Dependency update

05 Aug 16:31
v0.2.1
561fd46
Compare
Choose a tag to compare

No changes to ohsnap proper.

Usability Improvements

04 Aug 21:32
v0.2.0
5e40097
Compare
Choose a tag to compare

By which I mean, the module build now includes the dependencies, making it er. Usable.

Switch to use of splitScalar

04 Aug 16:27
v0.1.2
7f25f94
Compare
Choose a tag to compare

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

22 Jul 23:01
v0.1.1
c851742
Compare
Choose a tag to compare

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

20 Jul 20:32
v0.1.0
cf5c2ce
Compare
Choose a tag to compare

Implements a basic, but featureful, snapshot testing library.