Mastering Jest: A Complete Guide to Testing
Gain insights into Jest, a versatile testing framework. Learn about fundamental and advanced testing techniques, from unit tests to CI/CD integration, for comprehensive JavaScript application testing.
My software engineering journey began over 5 years ago, after leaving an artist management position in the music industry to pursue a career in the field. After attending Flatiron, I went to work for Syntx, a small software consulting agency, where I worked across a number of different client projects ranging from kickstarting greenfield applications, to overhauling legacy codebases, to extending backend services. After Syntx, I joined as the second software engineer at Sensible Weather, where I currently work. As the first frontend engineering hire, I worked to build out the team's frontend development environment as well as the initial production-level applications. This work has spanned all corners of the JavaScript world including React, Node, Astro, Jest testing, Cypress, production infrastructure (ie Docker, cloud services), monorepo tooling, SASS, and more.
Join 3.1 million developers at
What You'll Learn
- 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
Learning Roadmap
1.
Introduction
Introduction
2.
Setting Up Jest
Setting Up Jest
3.
Jest Matchers
Jest Matchers
5 Lessons
5 Lessons
4.
Writing Unit Tests
Writing Unit Tests
5 Lessons
5 Lessons
5.
Writing Snapshot Tests
Writing Snapshot Tests
4 Lessons
4 Lessons
6.
Asynchronous Code
Asynchronous Code
5 Lessons
5 Lessons
7.
Mocking
Mocking
6 Lessons
6 Lessons
8.
Mocking External Libraries
Mocking External Libraries
8 Lessons
8 Lessons
9.
Setup & Teardown
Setup & Teardown
4 Lessons
4 Lessons
10.
Test Coverage & CI/CD Pipelines
Test Coverage & CI/CD Pipelines
4 Lessons
4 Lessons
14.
Appendix
Appendix
2 Lessons
2 Lessons
Bryn Bennett
Hi, I'm Bryn. I'm a full-stack engineer at Sensible Weather, a climatech startup based in Los Angeles, CA where I have spent the past 3 years helping to shape, expand and maintain the frontend ecosystem, as well as learning the nuances of climate science.
Trusted by 3.1 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Software Developer
Carlos Matias La Borde
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Built for 10x Developers












Free Resources