Go Pro Sign Up Login

Buy Now and unlock this series




yours forever

Become a Pro and unlock everything




per month

React Testing for Beginners

In React Testing for Beginners we’re going to be going over testing in React. The purpose of this video is to make testing in react painless and fun by learning core concepts, useful tips, and utilizing different libraries such as Jest and react-testing-library. These concepts and tools will help you test the functionality of your applications.


Become a pro to download code and videos



over 2 years ago [edited]

Code is broken out of the box npm install will fail because of some error with node, so you have to use yarn. Then;

SecurityError: localStorage is not available for opaque origins

from jest, so you need to set a testURL variable in your jest config / package.json

  "jest": {
    "testURL": "http://localhost/"

Want to join the conversation?

Become a Pro member today!