You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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.
The text was updated successfully, but these errors were encountered:
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.
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 mykarma.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.The text was updated successfully, but these errors were encountered: