Unit Testing with Javascript Treningskurs

Last updated




7 timer (vanligvis 1 dag inkuldert pauser)


  • A general understanding of unit testing
  • Javascript programming experience
  • Experience working with Node.js


In this instructor-led, live training, participants will learn about various JavaScript testing frameworks as they step through the creation of a unit test suite for a web application.

By the end of this training, participants will be able to:

  • Write unit tests in JavaScript using unit test frameworks such as QUnit and Jasmine
  • Use frameworks such as Mocha and Chai to implement TDD and BDD


  • Test engineers

Format of the course

  • Part lecture, part discussion, exercises and heavy hands-on practice

Course Customization Options

  • A number of frameworks can be used to unit test a Javascript application (Jasmine, Mocha, Jest, Chai, etc.).
  • UI frameworks such as React are optional and can be covered if desired. 
  • To request a customized training for this course, please contact us to arrange.



  • How Unit Testing Works

Overview of Javascript Unit Test Frameworks

  • Jasmine, Mocha, Jest, Chai, QUnit
  • Unit test uses cases

Setting up the Testing Environment

  • Downloading and installing the libraries
  • Installing and configuring an IDE
  • Setting up a sample application

Writing Your First Unit Test

  • Setting up a test
  • Writing a test definition
  • Working with nested scoping
  • Creating assertions
  • Running the unit test

Debugging the unit test

  • Stepping through the code
  • Creating breakpoints
  • Setting up debug tasks

Expanding the Unit Test

  • Writing a complex Javascript class
  • Writing stubs and mocks
  • Creating a Test Suite

Implementing TDD and BDD

  • Creating automated specifications
  • Collaborating with users and testers

Writing More Tests

  • Testing Node.js
  • HTTP endpoint unit tests
  • Testing a REST APIs
  • Writing an integration test
  • Testing React components (optional)


Summary and Conclusion



Related Categories

Relaterte kurs


Kursrabatter Nyhetsbrev

We respect the privacy of your email address. We will not pass on or sell your address to others.
You can always change your preferences or unsubscribe completely.

Some of our clients

is growing fast!

We are looking to expand our presence in Norway!

As a Business Development Manager you will:

  • expand business in Norway
  • recruit local talent (sales, agents, trainers, consultants)
  • recruit local trainers and consultants

We offer:

  • Artificial Intelligence and Big Data systems to support your local operation
  • high-tech automation
  • continuously upgraded course catalogue and content
  • good fun in international team

If you are interested in running a high-tech, high-quality training and consulting business.

Apply now!

This site in other countries/regions