-
Notifications
You must be signed in to change notification settings - Fork 222
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-webpack Not Serving (Creating?) Tests Bundle #298
Comments
It's been almost 2 weeks, any word on this issue? Something I can try or something I can do to help debug the issue? |
I believe I found a solution to the problem. My environment uses TypeScript, which Webpack compiles to JS; however, config.set({
// ...
mime: {
'text/x-typescript': ['ts']
}
}); Is this something that should be added to the documentation for |
This sounds like it should be on stack overflow question but I can try to help anyway. Could you post your karma and webpack configs? |
See also #334 which could contribute to the solution. |
@c1moore thank you! This stumped me for hours before finding your comment. |
Looking at the SO resolution and date of this ticket, it looks like this is unrelated to karma-webpack. |
I'm submitting a bug report
I'm submitting a feature request
I'm submitting a support request
(All of the above)
Webpack version: 3.8.1
Webpack Karma version: 2.0.9
Karma version: 1.7.1
OS: Linux
Browser: Chrome | Firefox
Current behavior:
I opened an issue on StackOverflow detailing my issue. Basically, the bundle supposedly created by Webpack (via karma-webpack) is never loaded by the browser, so my tests never execute. I say supposedly because I have not been able to find where said bundle is ever emitted. Looking at the code and adding a few
console.log
s, it is supposed to be saved to/tmp/_karma_webpack_/
; however, this directory is never created. As a sanity check, I looked in:/tmp/_karma_webpack_/
tmp
tmp
Furthermore, I added a
console.log
in what I assume is supposed to be a callback for when Webpack is done compiling (line 111) and it is only executed once before Webpack even begins compiling the packages. This is the output I see in the console (annotations added as comments (#
))Expected/desired behavior:
If nothing else, karma-webpack should provide more feedback as to what is happening and what bugs might be occurring. There is absolutely no indication anywhere that the bundle was not created nor that any bugs occurred.
However, I have a feeling there is a bug with karma-webpack keeping it from either properly emitting the bundle or properly serving it to Karma. The output shown above indicates to me that there may be some bugs in how callbacks are handled. I'm not too familiar with webpack's and karma's internals, so I haven't been able to debug the issue much, I've just been looking over the code and adding logs.
The text was updated successfully, but these errors were encountered: