- 1.5 hours on-demand video
- 1 article
- 6 downloadable resources
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Jest testing framework
- Game of Life algorithm
- TDD fundamentals
- How to write Unit Tests
- Nodejs installed
- An IDE such as VSCode
Heard about Test Driven Development (TDD) and not sure what it is? We'll take a real world example of a coding challenge for a job and work through it using TDD. Learn what unit tests are and how they help to break down a problem.
We'll be building a 'Game of Life' simulation writing unit tests first (using Jest), breaking tasks down into small achievable steps and finishing with interacting with the game in a browser.
Learn the essentials of unit tests and TDD for the real world as you follow along.
- Beginner to intermediate programmers
This is the introduction to the course.
In this section we'll cover what to name your test files and where to put them. We'll cover the elements of tests including: describe, test/it, beforeAll, afterAll, beforeEach, afterEach, skipping tests and only running one test using 'only'. After this you will know how to set up your tests and make assertions.