Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
A new function createSerializer
has been added thanks to @vlad-zhukov (#76)
This function allows you to use the serializer with the option object, for example:
import {createSerializer} from 'enzyme-to-json';
expect.addSnapshotSerializer(createSerializer({mode: 'deep'}));
The new version differs by 7 commits.
c7dd309
3.1.0
f74a375
Upgrading dependencies as well
0fdd5c5
Updating package lock file
4cca2c7
Add createSerializer (#76)
dccc7d5
Update README.md
0ddebe9
Update README.md
810b38a
Updated README.md to put forward the best usage of the library
See the full diff
Version 3.0.0 of enzyme-to-json just got published.
The version 3.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of enzyme-to-json. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v3.0.0There it is, a new major version!
Features
Breaking changes
Components returning
null
or any falsy value are now rendered as an empty string in snapshots instead ofnull
Shallow wrapper are now outputting
undefined
props:This use case won't be supported anymore, it seems incorrect anyway to pass
this
as a prop and I can see no usage of this in thereact-bootstrap
documentation anywayThis use case won't be supported either as it doesn't seem to be supported by Enzyme either, you will just have to use their
simulate
helper to do thatmountToShallowJson
andmountToDeepJson
are replaced by amode
option inmountToJson
:Bugs
Please report any bugs in the GitHub issues tab as soon as you find them. Thanks!
Commits
The new version differs by 2 commits.
1badaa8
3.0.0
89e2b0d
Version 3.0 (Enzyme 3 and React 16 compatibility) (#72)
See the full diff
Not sure how things should work exactly?
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: