💻 Tech
A sample ng test
command below allows you to:
- Run a specific spec (
--include
) - Run tests in headless browser (no GUI) for faster tests (browsers are defined in
karma.conf.js
) - Re-run test when there are code changes (
--watch=true
) - Run tests without sourcemap (used to map compiled code back to the source code) for faster tests
ng test --include='component.spec.ts' --browsers=ChromeHeadless --watch=true --source-map=false