illustration for Unit testing in JavaScript
pro

Unit testing in JavaScript

Instructor

Josh Mock

4m closed-captioning
·
4 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.0
46
people completed
Published 6 years ago
|
Updated 2 years ago

Writing effective unit tests can be tricky in any language, and JavaScript apps often get neglected because testing UIs can be particularly tricky. While some of that can be solved by restructuring code and choosing tools that make everything more testable, it's also helpful to know some of the tricks of the JavaScript testing trade, like good mocking and stubbing practices. This playlist is full of tips for how to write tests that verify your code without any undesired side effects.