-
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
fix(middleware): throw script tag errors #3585
Conversation
@jehon please review |
✅ Build karma 392 completed (commit b280f298c8 by @johnjbarton) |
✅ Build karma 2789 completed (commit b280f298c8 by @johnjbarton) |
✅ Build karma 391 completed (commit b280f298c8 by @johnjbarton) |
Yes, this is what I found out yesterday night too... With this change:
Instead of before:
|
Hmm. |
Include failing path. This is important for module tags which otherwise simply give 404 at the server. Add e2e test to verify the message. Fixes karma-runner#3572
Added an e2e test. |
✅ Build karma 396 completed (commit 95aa986f97 by @johnjbarton) |
✅ Build karma 2793 completed (commit 95aa986f97 by @johnjbarton) |
✅ Build karma 395 completed (commit 95aa986f97 by @johnjbarton) |
@johnjbarton sorry for not being precise... the "ReferenceError" is the internal error in the loaded script. It is the error that I was expecting. Could have been anonymised a bit more... |
Actually the non-module path is a problem, because by default karma loads any unknown file as js. If the config does not match the filesystem, a script error results. Need to fix that up. |
This was superceded by #3605 |
Include failing path. This is important for module tags which otherwise
simply give 404 at the server.
Fixes #3572