Welcome to
Pain Free Mocking with Jest
Course Syllabus and Content
Pain Free Mocking with Jest teaches you how to effectively and painlessly test JavaScript applications with Jest. You'll start by learning how to write unit and integration tests as well as the 'How', 'What', and 'When' of Mocks, Stubs, and Spies. Then we'll move to more advanced technique and strategies you'll be using for the rest of your career, including how to have a hollistic approach to testing and how to automatically add your tests in the development lifecycle.
Introduction
6 Lessons 20 Minutes
Everything you need to know to start testing with Jest. You'll set up your environment, learn how to think like a tester with the Testing Pyramid and you'll even write your first test!
- Sneak Peek00:03:21
- Sneak Peek00:03:37
- Sneak Peek00:02:11
- Sneak Peek00:03:06
- Sneak Peek00:02:07
- Sneak Peek00:06:00
Getting started with mocking and unit testing
13 Lessons1 Hours 2 Minutes
Get started with unit testing and mocking. Write more unit tests, learn how, when, and why to use mocks, stubs, and spies, mock databases and participate in some fun testing exercises.
- Sneak Peek00:03:34
- Sneak Peek00:02:58
- Sneak Peek00:07:55
- Sneak Peek00:07:23
- Sneak Peek00:01:38
- Sneak Peek00:05:23
- Sneak Peek00:02:52
- Sneak Peek00:04:35
- Sneak Peek00:03:38
- Sneak Peek00:08:53
- Sneak Peek00:02:17
- Sneak Peek00:04:05
- Sneak Peek00:07:33
Getting started with integration testing
9 Lessons 37 Minutes
Get started with integration testing. Separate the database from your tests, learn how to test HTTP endpoints, run parallel tests, mock API integrations and participate in even more fun exercises.
- Sneak Peek00:02:09
- Sneak Peek00:05:24
- Sneak Peek00:06:25
- Sneak Peek00:04:03
- Sneak Peek00:03:39
- Sneak Peek00:02:10
- Sneak Peek00:03:37
- Sneak Peek00:05:37
- Sneak Peek00:04:47
Advanced mocking and integration testing
5 Lessons 18 Minutes
Learn advanced mocking and testing techniques. Test complex edge cases like slow or inconsistent networks and learn how to create consistent testing environments with test containers.
- Sneak Peek00:01:59
- Sneak Peek00:02:45
- Sneak Peek00:07:10
- Sneak Peek00:03:15
- Sneak Peek00:03:39
Testing strategy
5 Lessons 14 Minutes
Become a test strategist by learning about test costs, maintainability and how to have a hollistic testing approach with the Agile Testing Quadrant. Add your tests to the development cycle by setting up Git hooks with Husky and CI pipelines with GitHub actions.
- Sneak Peek00:03:14
- Sneak Peek00:03:23
- Sneak Peek00:03:41
- Sneak Peek00:01:31
- Sneak Peek00:02:39
Conclusion
1 Lesson 1 Minutes
You did it! By now you'll feel confident testing JavaScript applications with Jest because you have all the knowledge and tools you need to test applications in the real world without headaches.
- Sneak Peek00:01:31