Skip to content

restartOnFileChange option is broken (again) #3724

Closed
@scottohara

Description

(See similar issue from 2015: #1640)

Expected behaviour

✅ When restartOnFileChange: false, after a test run completes, saving a test file re-runs the test(s)
✅ When restartOnFileChange: true, after a test run completes, saving a test file re-runs the test(s)

Here I saved test.js three times, and it ran four times (initial run, plus 3 x saves):

expected

Actual behaviour

✅ When restartOnFileChange: false, after a test run completes, saving a test file re-runs the test(s)
🚫 When restartOnFileChange: true, after a test run completes, saving a test file does not re-run the test(s)

Here I saved test.js four times, and it ran once (initial run only):

actual

Steps to reproduce

I have created a trivial reproduction of the issue here:
https://github.com/scottohara/karma-restartonfilechange-bug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions