Open cvlos opened 6 years ago
same here. in fact if you set your coverage output directory to somewhere outside your 'watch files directory', you will fix it.
I finally figure it out. It's because I used webpack's require.context in my 'karma.entry.js' files. every time a new coverage html report is generated, webpack will detect some files are created or deleted and trigger a 'recompile'
Issue:
I wanted to get a report on both the console and in an output folder. However, when I add
type: 'html'
, the tests goes into infinite loop.Karma.config.js:
Any ideas?