If package.json at the root of your UI project starts out like this...
{
"name": "whatever",
"version": "1.0.0",
"scripts": {
"test": "karma start karma.conf.js",
"test-once": "karma start karma.conf.js --single-run",
Then if you open up PowerShell and navigate to the folder holding package.json, these commands should run the tests:
- npm run test
- npm run test-once
(clearly you need NodeJS/npm installed, duh) the first item above will rerun tests whenever .ts files change or until you press Ctrl-C
No comments:
Post a Comment