My goal is to set up automatic testing using karma with the following file structure:
/assests
/css
/font
/img
/js
/collection
/lib
/model
/plugin
/spec
/view
test-main.js
main.js
/templates
index.html
karma.conf.js
In my karma.conf.js file, I have configured the paths for loading files to be used in testing. However, the current issue I am facing is the inability to load any resources outside the base path.
For instance, when the tests try to access a template located at '../template/', karma fails to locate these templates. Unfortunately, changing the base path is not an option as all JS modules are under 'js/'.
Is there a solution or workaround to successfully load resources that are outside the base path?