How to test a component passed as prop with Jest
React components can be passed as props. But, they are tricky to test. In this article I will explain...
Tags: javascript, jest, nextjs, testing