Run jest and Return TypeError: Cannot read properties of null (reading 'textContent') – Javascript
I am now testing the behavior when the button is pressed in Jest and it returns the following error $ npm run test > [email protected] test > jest FAIL __tests__/index.test.js TypeError: Cannot read properties of null (reading 'textContent') 32 |…