Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 807 Bytes

File metadata and controls

15 lines (9 loc) · 807 Bytes

Testing Asynchronous Code with Jest

Description

This project contains the unit tests written in my youtube tutorials on.:

The master branch contains the code to be tested and the with tests branch contains the completed unit tests. The with bonus tests branch has tests for the bonus-round component which includes a mixture of timers and promises.

If you have any questions, leave a comment on the video or message me on Twitter.

Running unit tests

Run npm run test-watch to execute the unit tests in watch mode via Jest.