I’ve been working on an Angular 5 application for a while now and typically start my tests using the following command:
ng test --reporters dots
This works as expected. I started a new Angular 6 project recently and thought I could use the same command to run my karma tests, but whenever I try and specify
--reporters I get the following error:
Data path ".reporters" should be array.
This error doesn’t make a whole lot of sense to me, and where exactly it wants this array. I do have a
reporters: array in karma.conf.js, but it’s the same as what I’ve got in my Angular 5 project.
For the record,
ng test works just fine, but I prefer the dots output for local testing.