Instructor Created Collection

Unit testing in JavaScript

ClockIcon4m

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.