karma-intellij
karma-intellij copied to clipboard
Karma does not pick up changes in tests with webpack
(Related to WEB-40931)
As the title mentions, Karma does not pick up changes in tests. More specifically, the error can be reproduced by:
- Run Karma (through karma-intellij) with all tests passing
- Change a test to make it fail intentionally (while the Karma server is still running in the background)
- Re-run the tests (through karma-intellij)
- Karma still shows that all tests are passing (although they obviously shouldn't).
I have created a repo for reproduction with minimal setup here: https://github.com/michael-markl/karma-intellij.
As found out in this comment, commenting out the two lines
config.autoWatch = false;
config.autoWatchBatchDelay = 0;
in intellij.conf.js solves the issue. However, I am unsure about the consequences in other project setups. Maybe, it would be useful to keep autowatch
configurable?