Slim Hmidi
Apr 24, 2019 · 1 min read

Thanks a lot for this article, it helps me to test my react app. However, I have a question:
If you follow the order of your steps like that and you have a component where some propTypes are required and they will be passed to it using props, using the snapshot as described in your example without props passed to the components returns an error for me and mentions that some props are required and their values are null. So I have to create an object props and pass the props to the component using the snapshot. When I will pass props with snapshot, then I mix the step 1 and step 2 and the test will be awful. I hope that you understand my issue.

    Slim Hmidi

    Written by

    Fullstack javascript developer