Open ashgaliyev opened 6 years ago
There is return null
in the new code of enzyme-to-json
which wasn't before.
If it gets object other than the react component (style object this our case) it will return null.
https://github.com/adriantoine/enzyme-to-json/blob/master/src/shallow.js#L62
in the old code it returns empty object https://github.com/adriantoine/enzyme-to-json/blob/v1.5.1/src/shallow.js#L10
correct me if I'm wrong
PR are welcomed.
Prior to null
behaviour, you had just an empty object ?
I would be better to have the complete object with the style property.
Hello! I've recently upgraded from 1.5.1 to 3.3.4 and saw that all properties that get css files have been rewritten from
Object {}
tonull
I didn't find this change in the changelog and maybe it is a bug?
here is an example:
test:
snapshot: