Disclosure: when you buy through links on our site, we may earn an affiliate commission.

Typing the Test Suite

A brisk course on writing tests with Jest and TypeScript.
4.7
4.7/5
(6 reviews)
245 students
Created by Lachlan Miller

8.9

CourseMarks Score®

10.0

Freshness

8.5

Feedback

7.5

Content

Platform: Udemy
Price: $19.99
Video: 1h 53m
Language: English
Next start: On Demand

Top Typescript courses:

Detailed Analysis

CourseMarks Score®

8.9 / 10

CourseMarks Score® helps students to find the best classes. We aggregate 18 factors, including freshness, student feedback and content diversity.

Freshness Score

10.0 / 10
This course was last updated on 3/2021.

Course content can become outdated quite quickly. After analysing 71,530 courses, we found that the highest rated courses are updated every year. If a course has not been updated for more than 2 years, you should carefully evaluate the course before enrolling.

Student Feedback

8.5 / 10
We analyzed factors such as the rating (4.7/5) and the ratio between the number of reviews and the number of students, which is a great signal of student commitment.

New courses are hard to evaluate because there are no or just a few student ratings, but Student Feedback Score helps you find great courses even with fewer reviews.

Content Score

7.5 / 10
Video Score: 7.8 / 10
The course includes 1h 53m video content. Courses with more videos usually have a higher average rating. We have found that the sweet spot is 16 hours of video, which is long enough to teach a topic comprehensively, but not overwhelming. Courses over 16 hours of video gets the maximum score.
Detail Score: 9.3 / 10

The top online course contains a detailed description of the course, what you will learn and also a detailed description about the instructor.

Extra Content Score: 5.5 / 10

Tests, exercises, articles and other resources help students to better understand and deepen their understanding of the topic.

This course contains:

0 article.
0 resource.
0 exercise.
0 test.

Table of contents

Description

What is this?
A quick course for intermediate level developers looking to get started with testing using Jest and TypeScript.
The first section focuses on using Jest with JavaScript and a bit of TDD. The rest of the course uses TypeScript, Jest, with either Node.js or React. It’s 2 hours long and full of content.
We move fast, break things, then write tests to make sure they don’t break again. The technologies used are:
•Jest (v26)
•TypeScript (v4)
•React.js (v17)
•React Testing Library (v11)
Who is this for?
•Developers with some JavaScript/TypeScript, Node.js and React experience who’d like to learn to write tests.
•Highly motivated beginner who likes to jump in the deep end.
Required knowledge
I assume students have basic JavaScript knowledge.
The Node.js section assumes basic Node.js/Express knowledge, and the React section assumes some React knowledge. The testing concepts are largely unrelated to those specific frameworks, so as long as you have some programming experience, you should be fine.
Curriculum
1.0 Introduction
Get everything setup and starting writing some tests with Jest.
•1.1 Installation
•1.2 Your First Test
•1.3 Adding an Assertion
•1.4 Describing and Grouping Tests
•1.5 Feedback Loop with Watch Mode
•1.6 It.each for Concise Tests
2.0 Project: String Calculator
Put the skills learned in section one into practice by completing the String Calculator Kata.
•2.1 The First Test
•2.2 Handling Whitespace
•2.3 Throwing an Error
•2.4 Testing the Error
•2.5 Validating the Test Suite with a Functional Refactor
•2.6 Completing the Functional Refactor
3.0 Matcher Madness
Do a deep dive into the various matchers Jest provides, from toBe and toEqual to the more exotic resolves and rejects matchers.
•3.1 toBe
•3.2 toEqual, not
•3.3 toHaveProperty
•3.4 Resolves matcher for Promises
•3.5 Rejects matcher for Errors
•3.6 toHaveBeenCalled and Mock Functions
•3.7 Waiting with the Done Callback
4.0 TypeScript, Node.js and Jest
We introduce TypeScript and Jest by developing and testing a Node.js API. Note: This section assumes basic knowledge of Node.js and Express.
•4.1 TypeScript and Jest with ts-jest
•4.2 Express Setup
•4.3 The Jest Lifecylce: Before and After Hooks
•4.4 Better Types
•4.5 Adding JWT and a Refactor
•4.6 Authorization Header
•4.7 Testing for Success
•4.8 Testing for Failure
•4.9 Alternative Failed Assertion Syntax
•4.10 Summary
5.0 TypeScript, React and Testing in a DOM Environment
Build a toy React app and see how to use TypeScript and Jest for DOM based testing with Testing Library. Note: this section assumes basisc knowledge of React.
•5.1 Create React App and TypeScript
•5.2 Rendering with Testing Library
•5.3 Testing Library Assertions – getByText
•5.4 useState and Asynchronous Assertions
•5.5 Fetchign Data with useEffect
•5.6 More Async Behavior with findAll
•5.7 Mocking Axios with Jest Mocks
•5.8 Toggling Todos
6.0 Jest Tips and Tricks
Learn some of Jest’s more advanced features. Write your own custom matchers with TypeScript and write more robust, reuseable and (mostly) type-safe mocks.
•6.1 Section Overview
•6.2 Custom Matcher API
•6.3 Implementing the Matcher
•6.4 Typing the Matcher
•6.5 Setting up for Module Mocking
•6.6 Inline Mocks Review
•6.7 The Problem with Inline Mocks
•6.8 Manual Mocks
•6.9 Default Module Data
•6.10 Typing the Mock Module
•6.11 Improving the Spec Types
•6.12 Jest Spies
•6.13 What Next? More Learning Resources
I have more questions!
Send me an email.

Requirements

• Java
• Script and basic Type
• Script knowledge
• Basic React and Nodejs knowledge

You will learn

✓ Writing tests with Jest and TypeScript
✓ Testing Nodejs and Express
✓ Testing React with Testing Library
✓ Writing custom matchers and mock modules

This course is for

• Intermediate developers looking to brush up on testing

How much does the Typing the Test Suite course cost? Is it worth it?

The course costs $19.99.

Does the Typing the Test Suite course have a money back guarantee or refund policy?

YES, Typing the Test Suite has a 30-day money back guarantee. The 30-day refund policy is designed to allow students to study without risk.

Are there any SCHOLARSHIPS for this course?

At the moment we could not find an available scholarship for Typing the Test Suite.

Who is the instructor? Is Lachlan Miller a SCAM or a TRUSTED instructor?

Lachlan Miller has created 3 courses that got 440 reviews which are generally positive. Lachlan Miller has taught 13,605 students and received a 4.6 average review out of 440 reviews. Depending on the information available, Lachlan Miller is a TRUSTED instructor.

More info about the instructor, Lachlan Miller

Software Engineer
Lachlan is a full stack software developer, passionate about open source, test driven development, and mentoring. He has been contributing to the Vue.js open source community since 2016 and is the maintainer of Vue Test Utils, the official testing library for Vue.js.Lachlan has worked with small and large teams, as both a full stack developer as well as a mentor, providing training and guidance on designing greenfield applications, as well as seemlessly and safely transitions existing applications into new, highly dynamic modern web apps.

8.9

CourseMarks Score®

10.0

Freshness

8.5

Feedback

7.5

Content

Platform: Udemy
Price: $19.99
Video: 1h 53m
Language: English
Next start: On Demand

Students are also interested in

Other courses by ​Lachlan Miller

Get this widget on your website (for course creators):

Typing the Test Suite rating
Copy this code and paste it to your website:
<a href="https://coursemarks.com/course/typing-the-test-suite/" target="_blank" title="Typing the Test Suite on Coursemarks.com"><img border="0" src="https://coursemarks.com/widget/89.svg" width="200px" alt="Typing the Test Suite rating"/></a>