Sign Up
Go Pro Sign Up Login

Buy Now and unlock this series

$

39

.99

yours forever

Become a Pro and unlock everything

$

24

.99

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.

Downloads

Comments

Callam

over 1 year 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!