Purpose This repository hosts code for this dev.to article. The branch not-fix contains code that shows warning while writing tests for functional components in react. The branch fixed contains the fixed code.