How to shallow render Jest Snapshot Tests

added by JavaScript Kicks
8/13/2019 8:34:20 AM

248 Views

If you are using Snapshot Tests with Jest for your components, there are a few pitfalls you have to be aware of. Two of them are very likely to apply to your written tests as well: 1) The output of snapshot tests becomes most often too large, if the actual snapshot test renders a component with lots of child components.


0 comments