Search and Compare course prices, ratings, and reviews. Over +350 Design and Technology courses in one place!

Unit Testing for Typescript & NodeJs Developers with Jest

(12 customer reviews)
Product is rated as #179 in category Development

What you’ll learn

  • Deep understanding of unit testing
  • Write, run, debug complex test suites
  • Test basic React components
  • Mock and stub complex Typescript classes
  • Node testing using Jest
  • Test REST APIs
  • Write tests for error handling
  • Integration tests for Node apps
  • Jest – the basics
  • Jest – the advanced parts
  • Advanced unit testing techniques using Jest

Show moreShow less

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
  • Introduction on testing React components written in Typescript using react-testing-library
  • React User interaction with fire event and custom events
  • Assert react component values after asynchronous operations
  • Use TypeScript and React for full-stack unit testing

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!



Who this course is for:

  • NodeJs or Typescript developpers willing to deeply understand unit testing
  • React developers who want to test their apps
  • Developers who want to write robust and clean code
  • Developers who want to learn Jest

12 reviews for Unit Testing for Typescript & NodeJs Developers with Jest

3.9 out of 5
Write a review
Show all Most Helpful Highest Rating Lowest Rating
  1. Daniel B

    Excellent explanations and step-by-step building, but some of the code required debugging, and didn’t work the same way as in the video (probably because the dependencies changed since the video was recorded).

    Helpful(0) Unhelpful(0)You have already voted this
  2. Nitzan Paz

    It my first time i learn jest. coming from java/selenium background.
    so far it explain very easy and with good examples.
    also when not working how to fix.

    Helpful(0) Unhelpful(0)You have already voted this
  3. Darrell Malick

    I found the course very difficult to get through. I had to spend a lot of time reading other docs and source material to make sense of what was going on.

    The info on setup was good.

    The code-along was somewhat hard to follow because simply too much typing and clicking got edited out and it seemed like I was constantly just watching scrolling and mouse dragging and switching from screen to screen in a disorienting way.

    But most of all, I felt like the bigger picture concepts were just not explained in an organized way, but rather just got explained on the fly as situation after situation was encountered. I really would have preferred some conceptual explanation prior to diving into coding specific tests.

    Helpful(0) Unhelpful(0)You have already voted this
  4. Murat

    What I have expected is here. To be honost I didn’t hope to find my expectations. But it is perfect prepared. Thanks for everything…

    Helpful(0) Unhelpful(0)You have already voted this
  5. Joao Silva

    At 60% completed, I can already say this is a 5-star course. Instructor explains things clearly and takes the time to show some really good examples, without wasting a bunch of time going through the same content over and over.

    Helpful(0) Unhelpful(0)You have already voted this
  6. Joud Awad

    Course in general are very good and keep you updated with all the thing you have to know in terms of unit testing with jest and typescript, how ever the course dives directly in the mocks, etc.. without giving lots of explanation about them or at least couple of use cases, in general I think that this course is what I needed

    Helpful(0) Unhelpful(0)You have already voted this
  7. Dylan Lunde

    Too fast & can be difficult to follow

    Helpful(0) Unhelpful(0)You have already voted this
  8. David Kempf

    Course is good with good tips working with Jest mocking techniques.


    Good explanation between mockReturnValueOnce() and mockRejectedValueOnce()!


    React-Tests are not the best way to do it:

    -> ReactDOM better alternatives: render, screen from ‘@testing-library/react’

    -> fireEvent better alternative: userEvent from ‘@testing-library/user-event’

    Also have a look:

    I would much more prefer using it in the way its made for. querySelector() to get DOM elements in Tests can be hard to read and also you have much more ways for assertions with @testing-library/react.

    Helpful(0) Unhelpful(0)You have already voted this
  9. Marcus Thenander

    Very good information, database not updated on github for episode35.
    Talks fast however gets the job done

    Helpful(0) Unhelpful(0)You have already voted this
  10. Javier Delmastro

    Muy buen curso. Conceptos explicados con claridad. Para tener 5 estrellas debería cubrir casos más complejos y además plantear ejercicios solicitando al alumno que los resuelva utilizando lo aprendido, acompañado luego de la solución correcta.

    Helpful(0) Unhelpful(0)You have already voted this
  11. Alex Votry

    He will tell you what to type, but doesn’t spend much time explaining the “why” of any of it. He didn’t discuss when and what to test. He did provide some interesting tests and I did learn some things and I am more comfortable with testing. There are times you’ll have to search for the current way a test is done, but it was worth the $10.00.

    Helpful(0) Unhelpful(0)You have already voted this
  12. Carlos Yoque

    Everything has been awesome, thanks

    Helpful(0) Unhelpful(0)You have already voted this

    Add a review

    Your email address will not be published.

    Unit Testing for Typescript & NodeJs Developers with Jest
    Unit Testing for Typescript & NodeJs Developers with Jest


    Compare items
    • Total (0)
    Shopping cart