Beginner
52 Lessons
12h
Certificate of Completion
Takeaway Skills
Hands-on experience with writing clean and meaningful tests for any JavaScript code
An understanding of the best practices for writing JavaScript tests
Working knowledge of implementing testing coverage requirements in an application
Familiarity with mocking the internal and external dependencies for testing
The use of integrated test suites with a CI/CD pipeline
Configuration of a testing environment for your needs
Course Overview
Jest is a framework for testing applications developed in JavaScript. It has a well-documented and well-maintained range of tools to run tests in parallel. It is simple and works with projects using Babel, TypeScript, Node, React, Angular, Vue, etc. It works well for both client and server testing. This course covers Jest in-depth and is agnostic of any specific JavaScript framework. The course begins with the fundamentals of Jest testing, deconstructing the components of a test and covering how to compos...
Course Content
Introduction
Setting Up Jest
Jest Matchers
Writing Unit Tests
Writing Snapshot Tests
Asynchronous Code
5 Lessons
Mocking
6 Lessons
Mocking External Libraries
8 Lessons
Working with Jest Mocks
Project
Setup & Teardown
4 Lessons
Test Coverage & CI/CD Pipelines
4 Lessons
Test Coverage in Jest
Project
Conclusion
1 Lesson
Bonus: Best Practices
1 Lesson
Bonus: Resources for Continued Learning
1 Lesson
Appendix
2 Lessons
How You'll Learn
You don’t get better at swimming by watching others. Coding is no different. Practice as you learn with live code environments inside your browser.
Videos are holding you back. Educative‘s interactive, text-based lessons accelerate learning — no setup, downloads, or alt-tabbing required.
Learn faster and smarter with adaptive AI tools embedded in every Educative course.
Built-in assessments let you test your skills. Completion certificates let you show them off.