Typing the Test Suite
Typing the Test Suite, available at $19.99, has an average rating of 4.3, with 53 lectures, based on 23 reviews, and has 300 subscribers.
You will learn about Writing tests with Jest and TypeScript Testing Nodejs and Express Testing React with Testing Library Writing custom matchers and mock modules This course is ideal for individuals who are Intermediate developers looking to brush up on testing It is particularly useful for Intermediate developers looking to brush up on testing.
Enroll now: Typing the Test Suite
Summary
Title: Typing the Test Suite
Price: $19.99
Average Rating: 4.3
Number of Lectures: 53
Number of Published Lectures: 53
Number of Curriculum Items: 53
Number of Published Curriculum Objects: 53
Original Price: $19.99
Quality Status: approved
Status: Live
What You Will Learn
- Writing tests with Jest and TypeScript
- Testing Nodejs and Express
- Testing React with Testing Library
- Writing custom matchers and mock modules
Who Should Attend
- Intermediate developers looking to brush up on testing
Target Audiences
- Intermediate developers looking to brush up on testing
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.
Course Curriculum
Chapter 1: Introduction
Lecture 1: Introduction
Lecture 2: Source Code
Lecture 3: Installation
Lecture 4: Your First Test
Lecture 5: Adding an Assertion
Lecture 6: Describing and Grouping Tests
Lecture 7: Feedback Loop with Watch Mode
Lecture 8: It.each for Concise Tests
Chapter 2: Project: String Calculator
Lecture 1: Project Introduction
Lecture 2: The First Test
Lecture 3: Handling Whitespace
Lecture 4: Throwing an Error
Lecture 5: Testing the Error
Lecture 6: Validating the Test Suite with a Functional Refactor
Lecture 7: Completing the Functional Refactor
Chapter 3: Matcher Madness
Lecture 1: toBe
Lecture 2: toEqual, not
Lecture 3: toHaveProperty
Lecture 4: Resolves Matcher for Promises
Lecture 5: Rejects Matcher for Errors
Lecture 6: toHaveBeenCalled and Mock Functions
Lecture 7: Waiting with the Done Callback
Chapter 4: TypeScript, Node.js and Jest
Lecture 1: TypeScript and Jest with ts-jest
Lecture 2: Express Setup
Lecture 3: The Jest Lifecylce: Before and After Hooks
Lecture 4: Better Types
Lecture 5: Adding JWT and a Refactor
Lecture 6: Authorization Header
Lecture 7: Testing for Success
Lecture 8: Testing for Failure
Lecture 9: Alternative Failed Assertion Syntax
Lecture 10: Summary
Chapter 5: TypeScript, React and Testing in a DOM Environment
Lecture 1: Create React App and TypeScript
Lecture 2: Rendering with Testing Library
Lecture 3: Testing Library Assertions – getByText
Lecture 4: useState and Asynchronous Assertions
Lecture 5: Fetching Data with useEffect
Lecture 6: More Async Queries with findAll
Lecture 7: Mocking Axios with Jest Mocks
Lecture 8: Toggling Todos
Chapter 6: Jest Tips and Tricks
Lecture 1: Section Overview
Lecture 2: Custom Matcher API
Lecture 3: Implementing the Matcher
Lecture 4: Typing the Matcher
Lecture 5: Setting up for Module Mocking
Lecture 6: Inline Mocks Review
Lecture 7: The Problem with Inline Mocks
Lecture 8: Manual Mocks
Lecture 9: Default Module Data
Lecture 10: Typing the Mock Module
Lecture 11: Improving the Spec Types
Lecture 12: Jest Spies
Lecture 13: What Next? More Learning Resources
Instructors
-
Lachlan Miller
Software Engineer
Rating Distribution
- 1 stars: 0 votes
- 2 stars: 0 votes
- 3 stars: 7 votes
- 4 stars: 6 votes
- 5 stars: 10 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!
You may also like
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024
- Top 10 Gardening Courses to Learn in November 2024