Loading

In our application we’re testing code that should run in the browser, but Jest is intended to test JavaScript that runs in the browser or in node. Let’s create a custom jest config file so we can customize the test environment.

Transcript

Configure Jest’s Test Environment for Testing Node or Browser Code