Closed rochejul closed 4 years ago
Thanks for reporting the issue @julien-reboul. Feel free to open a PR if you have the code ready to go.
Thanks for reporting the issue @julien-reboul. Feel free to open a PR if you have the code ready to go.
@pmdartus you meant @rochejul 😄
Fixed by #103.
Hi
When we want to use "toMatchSnapshot" with LWC and Jest, we could have the following error (when some properties of the JSON have got a null value):
When we look on the code, we have:
According to ES6, the default value is applied only if the parameter is undefined. If we have a null value, it will not be applied.
Then, we should made instead:
Should I create a PR?
Many thanks
Regards