I’m working on a new application since few weeks, whose tests run with karma. Karma is configured with
autoWatch: true, so tests automatically run each time any file changes.
Unfortunately, tests did run twice each time I changed any file. It was quite annoying but I’ve always been too lazy to investigate it, until today.
After digging a bit on Google, I’ve found a GitHub issue with a PR fixing the same issue. The fix is actually straightforward: you should define
files using the extended syntax and set
watched: false for your tests / specs (they will still kept watched by
|KubeCon Europe||Barcelona||20 May 2019 until 23 May 2019|
|ServerlessDays||Milan||21 June 2019|