Signed-off-by: Tiago Melo <tmelo@suse.com>
Running Unit Tests
~~~~~~~~~~~~~~~~~~
-Run ``npm run test`` to execute the unit tests via `Karma
-<https://karma-runner.github.io>`_.
+Run ``npm run test`` to execute the unit tests via `Jest
+<https://facebook.github.io/jest/>`_.
Running End-to-End Tests
~~~~~~~~~~~~~~~~~~~~~~~~
"ng": "ng",
"start": "ng serve --delete-output-path false --proxy-config proxy.conf.json --host 0.0.0.0",
"build": "ng build",
- "test": "ng test",
+ "test": "jest --watch",
+ "test:ci": "jest --coverage",
"lint": "ng lint",
"e2e": "ng e2e",
"makePretty": "pretty-quick --staged"
. $CEPH_ROOT/build/src/pybind/mgr/dashboard/node-env/bin/activate
npm run build -- --prod
-npm run test -- --browsers PhantomJS --watch=false
+npm run test:ci
npm run lint
deactivate