karma-runner / karma-runner/karma
Cannot serve assets that don't fit its narrow view of acceptable types
- Dominant language
- JavaScript
- Stars
- 12k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
I know many bugs seem to have fixed this, but I cannot get it to work. Say that your Angular app wants to read a file that is arbitrary binary data, or even just *plain text*, and you think, hmm, perhaps I can put this in the `files` section of my `karma.conf.js`...
NO, YOU CAN'T! Because Karma will try to parse it as JavaScript, and there is no way to disable this behaviour!
If this is actually fixed then PLEASE UPDATE YOUR DOCUMENTATION. There is **NOTHING** in http://karma-runner.github.io/6.4/config/files.html that would seem to indicate that this is possible. Do I have to make a preprocessor that simply passes through binary data? **Then you should document this** and it is not documented at http://karma-runner.github.io/6.4/config/preprocessors.html either.
This is really unacceptable, all the StackOverflow questions seem to indicate that people just rename their files with a `.tar` extension. I cannot do this.
Contributor guide
Assessment
This issue has not been assessed yet.