This project contains the unit tests written in my youtube tutorials on.:
- Testing asynchronous code in Angular with Jest: Part 1 - Timers
- Testing asynchronous code in Angular with Jest: Part 2 - Promises
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.
Run npm run test-watch
to execute the unit tests in watch mode via Jest.