O'Reilly logo

Building Cross-Platform Desktop Applications with Electron by Muhammed Jasim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to JavaScript testing

Testing an application is a complicated process similar to development. It should validate the application against the possible bugs and errors and should check whether the code produces the targeted results properly. Different types of testing methodologies need to be carried out while developing an application from unit testing to integration testing. Testing the very basic unit of your code can be carried out using unit testing frameworks. Let's check how this works in common for JavaScript applications. Testing a JavaScript function with unit testing frameworks is very simple. For example, let's test a simple JavaScript function using the popular JavaScript testing framework, Mocha.

Mocha is a very popular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required