karma-intellij icon indicating copy to clipboard operation
karma-intellij copied to clipboard

Karma does not pick up changes in tests with webpack

Open michael-markl opened this issue 2 years ago • 0 comments

(Related to WEB-40931)

As the title mentions, Karma does not pick up changes in tests. More specifically, the error can be reproduced by:

  1. Run Karma (through karma-intellij) with all tests passing
  2. Change a test to make it fail intentionally (while the Karma server is still running in the background)
  3. Re-run the tests (through karma-intellij)
  4. 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?

michael-markl avatar Feb 06 '23 18:02 michael-markl