karma
karma copied to clipboard
Cannot serve assets that don't fit its narrow view of acceptable types
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.
Sorry, I spent two hours trying to reverse engineer Karma and I am very agitated, I don't mean to insult anyone personally, but I cannot understand how this problem could continue to exist after seemingly many years.