Jasmine

Jasmine is a behavior-driven development framework for testing JavaScript code. It is designed to run on any JavaScript platform, does not depend on any other framework or the DOM, and has an easy-to-read obvious syntax.

Before we start, it will help to install the Jasmine JavaScript library for WebStorm. We can use autocomplete and syntax highlight. Go to the Preferences | JavaScript | Libraries screen, and select Download.

Jasmine

In the new screen, select TypeScript community stubs and search for jasmine, and then select Download and Install.

Jasmine

Now ...

Get WebStorm Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.