Running the tests

Now, let's run the test by typing tsc to create the transpiled JS files, and then running the following command:

 karma start karma.ang.conf.js 

Karma will then find ALL of the .spec.js files and then run all of them on your Chrome browser, testing all the functionalities that you defined in each .spec.js file.

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.