December 2019
Intermediate to advanced
474 pages
10h 3m
English
Jest is based upon Node.js, meaning that it can't use the DOM to render your component and test its functionality. Therefore, you need to add a React core package to your project, which can help you render the component without a DOM. Let's take a look at this here:
npm install react-test-renderer --save-dev