This project provides sample code to go along with a blog post. It has three branches, which you can switch between at the top of this page.
main
: Unit testing a component when not using shallow rendering, but with few dependencieswith-api
: Unit testing a component when not using shallow rendering, but with dependencieswith-stubs
: Unit testing a component using shallow rendering, with dependencies