Mastering Jest: A Complete Guide to Testing

Mastering Jest: A Complete Guide to Testing

This course covers Jest, the testing framework for JavaScript, in depth and agnostic of any specific JavaScript framework.

Beginner

52 Lessons

12h

Certificate of Completion

This course covers Jest, the testing framework for JavaScript, in depth and agnostic of any specific JavaScript framework.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

2 Projects
44 Playgrounds
8 Quizzes

This course includes

2 Projects
44 Playgrounds
8 Quizzes

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...Show More

TAKEAWAY SKILLS

Unit Testing

Jest

Javascript

Javascript Testing

Frontend Testing

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

What You'll Learn

Hands-on experience with writing clean and meaningful tests for any JavaScript code

Show more

Course Content

1.

Introduction

2.

Setting Up Jest

3.

Jest Matchers

4.

Writing Unit Tests

5.

Writing Snapshot Tests

6.

Asynchronous Code

5 Lessons

7.

Mocking

6 Lessons

8.

Mocking External Libraries

8 Lessons

Working with Jest Mocks

Project

9.

Setup & Teardown

4 Lessons

10.

Test Coverage & CI/CD Pipelines

4 Lessons

Test Coverage in Jest

Project

11.

Conclusion

1 Lesson

12.

Bonus: Best Practices

1 Lesson

13.

Bonus: Resources for Continued Learning

1 Lesson

14.

Appendix

2 Lessons

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Souvik Kundu

Front-end Developer

Eric Downs

Musician/Entrepeneur

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath