Beginner
6h 30min
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.
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.
This course will teach learners how to test functions and classes, mock dependencies, name the tests, test asynchronous code, te...Show More
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.
Learn function testing.
Show more
TAKEAWAY SKILLS
Content
2.
Testing JavaScript with Jasmine
12 Lessons
Unpack the core of Jasmine's capabilities for robust and structured JavaScript unit testing.
Unit Testing BasicsUse Jasmine to Run Unit TestsUnit Test a FunctionTest a Function Throwing ErrorUse Jasmine MatchersTest a Function Depending on Other FunctionsUse Jasmine to Test Functions in BrowserTest Functions Depending on a Browser APIArrange Act AssertHow to Test Functions Depending on DatePerform an Action Before and After Each TestHow to Test Classes
3.
Testing Asynchronous Code
4 Lessons
Go hands-on with testing asynchronous code in JavaScript using Jasmine for robust applications.
4.
Debugging Jasmine Tests
2 Lessons
Break down the steps to debug Jasmine tests in Node.js and browser environments.
5.
Summary
2 Lessons
Solve problems in testing JavaScript apps with Jasmine, from basics to advanced techniques.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources