Using Jasmine to Unit Test Your JavaScript App

Gain insights into testing functions and classes, mocking dependencies, naming tests, testing asynchronous code, Node.js code, and browser API-dependent code using Jasmine in your JavaScript app.

Beginner

21 Lessons

6h 30min

Certificate of Completion

Gain insights into testing functions and classes, mocking dependencies, naming tests, testing asynchronous code, Node.js code, and browser API-dependent code using Jasmine in your JavaScript app.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

44 Playgrounds

This course includes

44 Playgrounds

Course Overview

This course will teach learners how to test functions and classes, mock dependencies, name the tests, test asynchronous code, test Node.js code, and test browser API-dependent code.

TAKEAWAY SKILLS

Unit Testing

Functions

Classes

Dependency Injection

What You'll Learn

Learn function testing.

Learn class testing.

Set up mocking dependencies.

Use Jasmine matchers.

Work with Asynchronous code testing.

Learn Node.js and browser API-dependent code testing.

What You'll Learn

Learn function testing.

Show more

Course Content

1.

Overview

Get familiar with unit testing JavaScript using Jasmine and its practical benefits.
2.

Testing JavaScript with Jasmine

Unpack the core of Jasmine's capabilities for robust and structured JavaScript unit testing.
3.

Testing Asynchronous Code

Go hands-on with testing asynchronous code in JavaScript using Jasmine for robust applications.
4.

Debugging Jasmine Tests

Break down the steps to debug Jasmine tests in Node.js and browser environments.
5.

Summary

Solve problems in testing JavaScript apps with Jasmine, from basics to advanced techniques.

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

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