Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn Javascript Unit Testing With Mocha, Chai and Sinon
Rating: 4.3 out of 5(662 ratings)
2,011 students

Learn Javascript Unit Testing With Mocha, Chai and Sinon

Learn to write unit tests with Mocha Chai and Sinon as well as learning how to TDD the right way
Created byTyler Pedley
Last updated 8/2017
English

What you'll learn

  • Write unit tests using Mocha, Chai and Sinon
  • Setup a new project that is ready for unit testing
  • Create programs following the TDD (Test Driven Development) patterns
  • Learn how to write more reliable and robust code
  • Learn how to expand your test suites with mocks, stubs and spies
  • Learn the use of spies and when to use them
  • Learn the use of stubs and when to use them
  • Learn the use of mocks and when to use them

Course content

6 sections14 lectures40m total length
  • Introduction0:38
  • Setting up our project files3:04

    In this video I will show you how to test a new node project ready for us to use to create a test suite.

Requirements

  • Basic JavaScript knowledge
  • A computer with an internet connection

Description

In this course you will learn the basics of the test driven development workflow and I will show you the best practices for using TDD. You will learn how to use Mocha, Chai and Sinon together to test your Javascript code giving you peace of mind that your code works as expected. After completing this course you will be able to extensively test your nodejs applications and websites. I will also show you each of the different styles for writing unit tests so that you can use the one that you like the best.


Alot of employers are starting to require TDD knowledge and so why not get started here?

Who this course is for:

  • Anyone looking to learn how to write unit tests for their code
  • Anyone who wants to start writing more reliable and robust code