Book Image

The Complete JavaScript Unit Testing Guide [Video]

By : Haider Malik
Book Image

The Complete JavaScript Unit Testing Guide [Video]

By: Haider Malik

Overview of this book

<p>Unit testing allows the automation of the testing process and helps you discover errors contained in more complex pieces of the application. It enhances test coverage because attention is given to each unit. Writing unit tests will help you improve your JavaScript code before you even start writing it</p> <p>This course will teach you to use unit testing in your JavaScript applications and covers tools and techniques you'll need to write unit tests for your code. You will learn how to test applications using Jasmine, Mocha, Ava, Tape, and Intern.</p> <p>By the end of the course, you will be able to perform unit testing using JavaScript to deliver better code.</p> <p>The code bundle for this course is available at -&nbsp;<a href="https://github.com/PacktPublishing/The-Complete-JavaScript-Unit-Testing-Guide" target="_blank">https://github.com/PacktPublishing/The-Complete-JavaScript-Unit-Testing-Guide</a></p> <p><span style="background-color: transparent; font-family: Helvetica, Arial, sans-serif; font-size: 20.4px;">Style and Approach</span></p> <p>A comprehensive course packed with step-by-step instructions, working examples, and helpful advice on working with unit testing in JavaScript. This course is divided into clear chunks so you can learn at your own pace and focus on your own area of interest.</p>
Table of Contents (5 chapters)
Chapter 4
Framework for Application Testing
Content Locked
Section 1
Testing Applications with Jasmine
The aim of this video is to explain how to write unit test with jasmine. - Install and initialize jasmine - Add script in package.json file - Execute the tests