HOME > Development > Real-World TypeScript Unit Testing

Real-World TypeScript Unit Testing

  • Development
  • May 12, 2025
SynopsisReal-World TypeScript Unit Testing, available at $74.99, has...
Real-World TypeScript Unit Testing  No.1

Real-World TypeScript Unit Testing, available at $74.99, has an average rating of 4.75, with 189 lectures, 134 quizzes, based on 10 reviews, and has 521 subscribers.

You will learn about Create unit tests for real world typescript client and or server applications using vitest or jest Write better typescript code with less bugs Ship code to production quickly and confidently Represent your system using advanced diagrams : block diagram ,UML sequence diagram and UML class diagram Write unit testing of pure logic code using test and expect Invoke test coverage tool like istanbul Write unit testing for code with side effect using spyOn , fn and mock Use advanced concepts for unit testing : refactoring , debugging , filtering Use isolated test and sociable test for unit test with module interaction Create unit testing involving real and fake timer such as in sinonjs/fake-timers Create unit testing for frontend vanilla UI using jsdom : document , querySelector Create unit testing for frontend vanilla UI using dom testing library : getByText , getByRole , waitFor Create unit testing for frontend react UI using react testing library : render , screen Use advanced typescript for better code : union , enum , type any and unknown , polymorphism using inheritance , class diagram Create unit tests using vitest and jest and compare between these tools This course is ideal for individuals who are Students that want to write better code with less bugs using unit tests or Frontend developers or Fullstack developers or Backend developers or React developers It is particularly useful for Students that want to write better code with less bugs using unit tests or Frontend developers or Fullstack developers or Backend developers or React developers.

Enroll now: Real-World TypeScript Unit Testing

Summary

Title: Real-World TypeScript Unit Testing

Price: $74.99

Average Rating: 4.75

Number of Lectures: 189

Number of Quizzes: 134

Number of Published Lectures: 189

Number of Published Quizzes: 134

Number of Curriculum Items: 323

Number of Published Curriculum Objects: 323

Original Price: $89.99

Quality Status: approved

Status: Live

What You Will Learn

  • Create unit tests for real world typescript client and or server applications using vitest or jest
  • Write better typescript code with less bugs
  • Ship code to production quickly and confidently
  • Represent your system using advanced diagrams : block diagram ,UML sequence diagram and UML class diagram
  • Write unit testing of pure logic code using test and expect
  • Invoke test coverage tool like istanbul
  • Write unit testing for code with side effect using spyOn , fn and mock
  • Use advanced concepts for unit testing : refactoring , debugging , filtering
  • Use isolated test and sociable test for unit test with module interaction
  • Create unit testing involving real and fake timer such as in sinonjs/fake-timers
  • Create unit testing for frontend vanilla UI using jsdom : document , querySelector
  • Create unit testing for frontend vanilla UI using dom testing library : getByText , getByRole , waitFor
  • Create unit testing for frontend react UI using react testing library : render , screen
  • Use advanced typescript for better code : union , enum , type any and unknown , polymorphism using inheritance , class diagram
  • Create unit tests using vitest and jest and compare between these tools
  • Who Should Attend

  • Students that want to write better code with less bugs using unit tests
  • Frontend developers
  • Fullstack developers
  • Backend developers
  • React developers
  • Target Audiences

  • Students that want to write better code with less bugs using unit tests
  • Frontend developers
  • Fullstack developers
  • Backend developers
  • React developers
  • You’re here because you know typescript and want to write better code with fewer bugs using unit tests.

    I am here because I can help you accomplish your mission. I have B.s.c + M.s.c in mechanical engineering. I have been making software applications for over 20 years in the Hi-Tec industry and have much teaching experience. You can trust me and my teaching methods. I have learned many technologies in the past (check my LinkedIn profile), and I know exactly what is needed to learn and how.

    In this course, I teach you everything you need about unit tests, and I use a real-world system, typescript, vitest, and jest.

    The task of writing a unit test is not simple because there are many moving parts:

    – Unit test of logic code

    – Unit test of code with side effects like accessing the web

    – Unit test of a module that uses another module

    – Mocks

    – Timers

    – Unit test of UI

    – Unit test of code that runs on the server

    – Jsdom, testing library, react testing library

    – Some tools like jest need a nontrivial setup to work with typescript and ES module

    – New competitor to jest, e.g., vitest

    – Coverage test

    This ocean is very hard to swim without first learning it properly, and this is done in this course.

    Learning in this course is not just video lessons; there are other important learning materials that most courses do not provide as a whole :

    – Quiz after EVERY lesson

    – Coding exercise at the end of EVERY coding section

    – pdf file with all the lectures

    – pdf file with a dictionary of all the material that I teach in this course

    Course Curriculum

    Chapter 1: Getting started

    Lecture 1: Welcome to my course

    Lecture 2: Setup simple unit test project

    Lecture 3: Create your first unit test

    Lecture 4: Coding Excercise 1

    Lecture 5: Coding Excercise 1 solution

    Chapter 2: Testing concepts and tools

    Lecture 1: Section Intro

    Lecture 2: What is testing

    Lecture 3: Unit test vs integration test vs e2e test

    Lecture 4: Side effects

    Lecture 5: Properties of a good unit test

    Lecture 6: Manual test vs automatic test

    Lecture 7: Motivation for automatic testing

    Lecture 8: Should you test all your code

    Lecture 9: Unit testing best practices

    Lecture 10: Unit testing modes

    Lecture 11: Unit testing framework : vitest and jest

    Lecture 12: Vitest

    Lecture 13: Jest

    Chapter 3: Task queue manager- the system we will unit test

    Lecture 1: Section Intro

    Lecture 2: Simple system UI

    Lecture 3: Block diagram

    Lecture 4: Sequence diagram

    Lecture 5: Source code

    Lecture 6: Motivation

    Lecture 7: Specification

    Lecture 8: Project structure

    Chapter 4: Unit test of pure logic code – TaskQueue

    Lecture 1: Section intro

    Lecture 2: Directory final setup

    Lecture 3: Unit test of an object or a class

    Lecture 4: Choosing the first module to unit test

    Lecture 5: Setup unit test for TaskQueue

    Lecture 6: TaskQueue – test for empty queue

    Lecture 7: TaskQueue – test for non empty queue

    Lecture 8: Fix the test using beforeEach and add clear function to TaskQueue

    Lecture 9: Code at section end

    Lecture 10: Coding Excercise 2

    Lecture 11: Coding Excercise 2 – solution

    Chapter 5: Code coverage

    Lecture 1: Section intro

    Lecture 2: Code coverage meaning and motivation

    Lecture 3: Do we need 100% code coverage

    Lecture 4: Inatallation

    Lecture 5: Usage

    Lecture 6: Coding Excercise 3

    Lecture 7: Coding Excercise 3 – solution

    Chapter 6: Unit testing of pure logic code – TaskDispatcher

    Lecture 1: Section intro

    Lecture 2: Choose the second module to unit test

    Lecture 3: Dive into TaskDispatch code

    Lecture 4: Prepare the test file

    Lecture 5: Unit test empty map – dispatch throw

    Lecture 6: Unit test task not found – dispatch throw

    Lecture 7: Function type as function argument issue

    Lecture 8: Refactor types

    Lecture 9: Test dispatch status is ok

    Lecture 10: Test reveal bug in dispatch -> debug and fix

    Instructors

  • Real-World TypeScript Unit Testing  No.2
    Nathan Krasney
    Instructor and Developer
  • Rating Distribution

  • 1 stars: 0 votes
  • 2 stars: 0 votes
  • 3 stars: 1 votes
  • 4 stars: 1 votes
  • 5 stars: 8 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!