Creating good unit tests can be hard — especially if your component calls an API or relies upon code that’s external to your project. Fortunately, Jest provides mocking capabilities that will enable your unit tests to cover those important cases in your component.
www.utahjs.com