The complete guide to testing javascript & node applications
4.3 (151 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
9,836 students enrolled

The complete guide to testing javascript & node applications

Become job ready for advanced nodejs development by mastering testing from scratch, jest, cypress, mocha and more.
4.3 (151 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
9,836 students enrolled
Created by Kati Frantz
Last updated 6/2019
English
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2 hours on-demand video
  • 1 article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Get a very deep understanding of unit testing
  • Test real world node-js APIs with both unit testing & integration testing
  • Become a guru at writing end to end tests for all sorts of applications
  • Master mocking, stubbing, and common techniques of testing applications
  • Understand when and how to use feature tests, unit tests, and end to end tests.
Course content
Expand all 24 lectures 01:59:38
+ Source code
1 lecture 00:26
How to get the source code for all lessons
00:26
+ Unit testing nodejs apps
9 lectures 45:39
Project setup
03:15
Testing pre-save hooks for mongoose models
06:11
Mocking packages with jest
03:49
Setup and teardown
03:48
Testing instance methods
04:59
Mock functions with jest
05:33
Mock and spies
06:02
Testing the authentication middleware
06:41
Refactoring to test utils
05:21
+ Integration testing nodejs apis
3 lectures 20:31
Testing the registration process
08:56
Testing failed validations
04:03
Testing the email confirmation processes
07:32
+ End to end testing with cypress
3 lectures 17:50
Setting up cypress
02:50
Testing the home page
06:34
Testing the login process
08:26
Requirements
  • Basic Understanding of NodeJS & Javascript
Description

When I started learning how to test, everything looked so easy. 

Assert 2 + 2 = 4 ? 

Sure, piece of cake. But when I was faced with a real world application, this was terrifying. I couldn't catch up at my job. It was depressing. I didn't understand what mocking was. Neither did I understand topics like stubbing or spying

That's why I created this course. You are going to start from scratch, understanding exactly what a test is, what an assertion is, what errors are, and then we'll move on to more basic topics like:

  • Unit testing

  • Test runners

  • Assertion libraries

  • Test suites and organising tests

  • Running tests

To master these concepts, we'll write unit tests for real world functions, and understand exactly how testing feels when working on a real world project.

We'll have a full-stack real-world advanced javascript application, build with the latest features of Javascript, and we'll clone this project, and write tests for it from scratch.

There will be plenty of assignments and code reviews, to make sure you understand exactly what is being thought in the course.

After our feet are wet , and we can write basic tests, and after solving multiple exercises, we'll move on to a more real world approach, covering advanced topics like: 

  • Feature / integration testing

  • Mocking

  • Spying & stubbing

  • Asynchronous tests

  • Database testing

  • End to end testing

We'll then dive into TEST DRIVEN JAVASCRIPT DEVELOPMENT, understanding the RED, GREEN, REFACTOR TESTING CYCLE, and how to apply this into our projects to build more robust and bug free applications. 

So what are you waiting for ? Are you ready to become an advanced javascript engineer? Enrol now and let's get started !

Who this course is for:
  • Any javascript developer with absolutely no experience testing applications
  • Any level javascript developer willing to master TEST DRIVEN JAVASCRIPT DEVELOPMENT
  • Any level javascript developer willing to brush up on modern javascript testing tools
  • Beginners in javascript willing to become professional javascript testing
  • Any level Javascript developer willing to have a deep understanding on general testing best practices
  • Advanced Javascript programmers willing to become testing masters