Is is possible to read static JSON files in a Karma test? I would like to store the testdata in separate files.
I tried reading the files using require, but I didn't get that working.
Try to use the requirejs's text plugin. It works perfectly well for this: https://github.com/requirejs/text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With