Test Driven Development using Javascript and Jest
Test Driven Development using Javascript and Jest
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 the TDD process. 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 ride shotgun (this style will not suit everyone, so check out a couple of free videos first!).
We won't be using React or any frameworks - only vanilla javascript. If you are dissatisfied I would rather you get a refund than leave a low rating.
It seems people think there is more to TDD than what it appears! It is a very simple process!
The process we will be using is setting an end goal - 'build an x' - or in our case 'build a game of life'. The goal is the end result; the product. This would then be broken down into individual tasks (usually when you work for a company you may only get individual tasks such as 'As an x I want to y so that I can z'). After selecting a task to work on you ask yourself what set of tests would confidently demonstrate that this task is complete and works as expected. This process could be:
break down the task and list the tests we need for it to be considered 'done'
'start small or not at all' as Kent Beck says - so write the simplest test and code to pass
stub any dependencies
incrementally change constants to variables (from specific to generic)
Learn how to use TDD to become a better problem solver
Url: View Details
What you will learn
- Test driven development using Javascript and Jest
- Jest testing framework
- Game of Life algorithm
Rating: 4.3
Level: Intermediate Level
Duration: 1.5 hours
Instructor: Mark Robson
Courses By: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
About US
The display of third-party trademarks and trade names on this site does not necessarily indicate any affiliation or endorsement of course-link.com.
View Sitemap