-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
karma 3.1.3 is not working with single entry file #3226
Comments
@Havunen Could you please provider steps to reproduce? A small example project would be great. Also, how do you run your karma tests? |
@segrey here's a quick example https://github.com/garyvh2/karma-reload-problem
Tests will be run on Chrome Headless, you will notice 2 tests being reported as successful. Now, without stopping the server, go into You will notice that the tests are automatically run again, but both still successful, now, stop the tests server ( If you try this with Tell me if you need further information. |
@garyvh2 Thanks for the repro! |
…3230) This reverts commit 5334d1a karma-webpack preprocessor updates bundle when needed, but karma's fileList consists of a single entry file which is usually unmodified. In this case, fileList.refresh() should always call preprocessor for the single entry file, avoiding preprocessing of unmodified files is done on karma-webpack side.
It's been reported in Single-entry setups are quite common with |
Please try 3.1.4 |
3.1.4 works fine 👍 |
Expected behaviour
Karma 3.1.3 should re-process files when there is single entry point and it uses karma-webpack integration
Actual behaviour
Karma 3.1.3 does not re-process the file and no changes are picked up
Karma 3.1.1 works as expected
The text was updated successfully, but these errors were encountered: