visual studio , JavaScript , UnitTest

https://docs.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/debug-test/basic-tests-with-jasmine?view=toolsforcordova-2017

npm install --save-dev jasmine Installs Jasmine
npm install --save-dev karma Installs Karma
npm install --save-dev karma-jasmine karma-<browser>-launcher Installs Karma dependencies; replace <browser> with whatever you have installed, e.g. chrome, firefox, or ie.

https://docs.microsoft.com/en-us/visualstudio/cross-platform/tools-for-cordova/debug-test/visual-studio-unit-testing-with-chutzpah?view=toolsforcordova-2017

 For this section you’ll need to have the Visual Studio Tools for Apache Cordova installed. If necessary, restart Visual Studio’s installer, press Modify, check the box for Cross-Platform Mobile Development > HTML/JavaScript (Apache Cordova), and press Update.

原文地址:https://www.cnblogs.com/chucklu/p/9209734.html