Reproduction of a possible bug in karma-runner/karma with restartOnFileChange: true
.
(See previous occurrence of a similar bug back in 2015)
Steps to reproduce:
- Clone this repo (
git clone https://github.com/scottohara/karma-restartonfilechange-bug
) - Change into directory (
cd karma-restartonfilechange-bug
) - Install npm dependencies (
npm install
) - Start karma (
karma start
) - Open the
test.js
file, and repeatedly hit save. Note that the test successfully re-runs on each save. - Stop karma (
CTRL-C
) - Edit
karma.conf.js
and setrestartOnFileChange: true
- Start karma (
karma start
) - Open the
test.js
file, and repeatedly hit save. Note that the test does not re-run on each save.