If I have a file in `test/resources` how do I load...
# javascript
a
If I have a file in
test/resources
how do I load that file in a test? I’m trying
fetch("./myfile")
and it is returning a not found error.
t
Looks like
testProcessResources
task configuration required
a
I have to specifically configure this task? I can see the file I want in build directory.
t
You can register output files in Karma
files
section https://github.com/karma-runner/karma/issues/872
a
Do you happen to have an example? Do I need to just use the files section or also the proxies section?
Didn't see much in the Karam docs about loading local files.
Oh. There's a whole section about files outside of the config section. I'll give that a try. Thanks!
wait so I can’t load json files this way?