O'Reilly logo

Mastering TypeScript by Nathan Rozentals

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

Jasmine

For this section of the chapter, we will create a new Visual Studio project that is based on the MVC framework project type. For now, we can just use the empty MVC template.

Jasmine can be installed into our new TypeScript project with the following two NuGet packages:

Install-Package JasmineTest
Install-Package jasmine.TypeScript.DefinitelyTyped

With these two packages in place, we have the required JavaScript libraries and TypeScript definition files in place to begin writing Jasmine tests.

Note

The default installation from NuGet for JasmineTest uses the ASP.NET MVC framework, and creates a JasmineController in the Controllers directory. If you are not using the MVC framework, or are installing this package in a Node environment, then ...

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