How do I run my tests in a headless environment?

Angular CLI normally executes tests in Chrome. How can I enable a headless option? For instance, try:

ng run-test --option silentMode

Note: PhantomJS may report Intl-related errors.

i got this worked by using chrome headless. try running: ng test --browsers ChromeHeadless --disable-gpu. it worked fine for me even tho i had to tweak configs a bit. hope it helps!