Angular 6 was released only a few hours ago and I was eager to start working with it. As I was working through some of the many features, I found that the test runner exits after a single test run despite the settings explicitly setting defaults (autoWatch: true, singleRun: false). I have already logged this issue with the CLI team on Github but wanted to share my workaround.
Karma autoWatch Workaround
--watch after the
ng test in the package.json file (looks like `ng test –watch`) and running `npm run test` from the command line, I was able to make the runner stay in watch mode. This can also be accomplished by running `ng test –watch` from the command line as well.
That is all I have for today, happy coding!