Unit Testing for Typescript & NodeJs Developers with Jest

Master unit testing with NodeJs, Typescript, Jest and React. Write top quality Typescript and NodeJs software with Jest

4.58 (1364 reviews)
Udemy
platform
English
language
Software Testing
category
instructor
Unit Testing for Typescript & NodeJs Developers with Jest
11,894
students
11.5 hours
content
Apr 2024
last update
$94.99
regular price

What you will learn

Basics of TypeScript unit testing with Jest

Integration tests with TypeScript

Test Driven Development (TDD) with Jest

Unit testing React with TypeScript and Jest

CICD with GitHub Actions and Docker

Jest - the basics: hooks, assertions, matchers

Jest - the advanced parts: aliases, custom matchers, snapshots

Advanced unit testing techniques using Jest

Database operations testing with Docker and Jest

Why take this course?

A must have skill for senior developers

Typescript is getting more and more popularity and it is a required skill for many IT jobs. It's key feature is type safety, thus preventing bugs.

But yes another skill is very important for any programming job: unit testing. Combining these two techniques will result in solid, robust and bug free code.

This course will go beyond the basics of unit testing and teach you all you need to write real world, complex testing suites for NodeJs and Typescript applications using the most popular JavaScript testing library: Jest.

Using Jest as an unit testing library provides many advantages:

  • Unitary unit testing library for running and structuring tests

  • Extensive mocking, stubbing and spying capabilities

  • Powerful matchers to create simple to read tests

  • Jest ships as one unitary NPM package

  • Jest is the default choice for TypeScript React projects

Why unit testing NodeJs apps?

Unit testing usually adds a lot to a code base, two or tree times in some cases. This also means that a lot of time needs to be invested in writing and setting up tests. But all this effort pays of: time, effort and headache of fixing bugs can be used for more fun activities.

What you will get from this course:

  • setup NodeJs and Typescript projects from scratch

  • implement unit testing with Jest

  • learn about unit testing configuration with parameters like: roots, transform, testRegex or verbose

  • learn about Jest test suites structure: describe with value, test, descriptions, hooks like beforeEach

  • basic and advanced assertions, comparing primitive types, objects or even errors

  • instantiating test double objects like mocks, stubs, spies or fakes.

  • write complex mock objects which can be used with "strange" JavaScript libraries.

  • inject doubles: directly inside the constructor, over the module or even using the objects prototype

  • learn about deep mocks and matchers to make your tests even better

  • integration tests for a NodeJs server application

  • Conditionally and asynchronously skip tests

Dedicated sections on unit testing mocks:

  • Jest mocks, spies

  • How to use stubs

  • London/Chicago testing approach, with the advantages and disadvantages of each one

In this course you will learn how to use Test Driven Development (TDD):

  • Analyze the advantages of TDD

  • Hands-on practice with a great coding kata: password checker

Separate section on Jest Integration tests for Rest APIs:

  • learn how to setup integration tests

  • learn the difference between integration tests and unit tests

  • write integration tests for a Rest API with Jest

Dedicated section on Jest React unit testing:

  • How to test for React components with Jest

  • How to test React async code

  • How to debug React Typescript apps

The examples used in the course follow very high coding guidelines for Typescript, NodeJs and React. Async/await syntax is used for clear and concise code, and of course, you will see how to test asynchronous code, on server, but also in the front end.

Course advantages:

  • Respect for your time: most of the time of the instructor typing is cut off, the course is focused on unit tests and Jest explanations

  • Concise: learn only what you need, no fillers to make the course falsely more appealing

  • Experienced and programming active instructor: a great teacher never looses touch with the industry. This is especially true for software development, where the industry is so dynamic. This helps the instructor stay up to date with the best coding guidelines and present you the challenging parts, not the "hello world"

  • Organized course structure: six parts, progressive approach, consistent content

  • Code changes in each lecture on Git with code diffs: this will help you get an concise overview of the lecture and correct in case you missed something

  • Big font, dark background, fullHD content, this way it is readable even on a small screen or even tablet.

  • Lifetime access

  • Certificate of completion to present to your current or prospective employer

Do you want your Typescript or NodeJs code to have the best quality, and your project to be safe?

Enroll and start writing your tests in 10 minutes!



Screenshots

Unit Testing for Typescript & NodeJs Developers with Jest - Screenshot_01Unit Testing for Typescript & NodeJs Developers with Jest - Screenshot_02Unit Testing for Typescript & NodeJs Developers with Jest - Screenshot_03Unit Testing for Typescript & NodeJs Developers with Jest - Screenshot_04

Reviews

Glauber
October 25, 2023
Great content, I'm a Brazilian developer and I can understand it even though my English is pretty bad lol
Jean-Paul
July 29, 2023
A little bit outdated from the code examples, but the testing approaches and training was outstanding. Updating to align with current standards yourself only enhances it as it isn't hard, and you learn even more. I enjoyed it.
Parveen
July 26, 2023
This course i found very useful for learning jest. Along with it, contains Typescript tutorials which is helpful.
Eugen
July 22, 2023
This course is perfect for me. PS: Please take a look lesson 40 "Event based app". Your tests in this lesson are not corrected. `requestMock.on.mockImplementation` calls `cb()` when it added. It is not right.
Himanshu
July 13, 2023
Great course not just for testing but also to learn how to maintain repo structure/files without any framework
Esteban
July 2, 2023
Great course! I've always had a confusion between mocks, spies and stubs but this course made really clear the differences between them and how to use them. It fulfilled all my expectations.
Margo
June 29, 2023
I've been writing tests at work, so was a little worried that a course would only tell me things I already knew. But the reality is that I've been figuring it out as I go without any kind of overview or guidance about different scenarios, so my knowledge definitely has gaps (which I knew) and this is filling them (which is lovely)
Mateus
June 13, 2023
Had to say that this is the best course of testing in NodeJs projects, I can guarantee that if you know nothing about testing, after this course you'll certainly change this sentence.
Sonny
June 6, 2023
I could understand basic of test theory! I was very much worth for me to spend my time journeying with you Alex! It was great time!
Fabio
April 20, 2023
This course teaches you the basics and more of what you need to keep in mind to properly test your code. Highly recommended
Aldo
April 4, 2023
It was a great course. Definitely learned a lot on testing with typescript and node. I also will take courses that cover testing with express and a sql/noSql databases as this wasn't mentioned in this particular course. Thanks!
Luis
April 1, 2023
Really good course on Unit Testing. I have taken two courses from this instructor and both have been of exceptional quality. The courses are practical and full of examples.
Wesley
March 24, 2023
This course has helped me a lot at my job. The structure is great and it clearly presents both easy and complicated tests. Thanks!
Syed
March 3, 2023
The course seems good. and you explain things. But I think there is a need for you to explain certain terms like tear down and so on. Another thing is to explain the what and why in some cases to explain why would we use one technique over an other.
Morne
March 2, 2023
The new updated version of this course rocks! I started it from scratch and loving it. Well done Alex

Charts

Price

Unit Testing for Typescript & NodeJs Developers with Jest - Price chart

Rating

Unit Testing for Typescript & NodeJs Developers with Jest - Ratings chart

Enrollment distribution

Unit Testing for Typescript & NodeJs Developers with Jest - Distribution chart
3564139
udemy ID
10/12/2020
course created date
10/31/2020
course indexed date
Bot
course submited by