Given the karma.conf, test-main-karma.js, and windowTools.js below. The karma.conf loads the test-main-karma.js which adds the amd methods define and require to the window.
Then test-main-karma.js requires jquery, knockout, Q, and windowTools. When it pulls in the windowTools file the define method is undefined.
Could you please advise how to make sure that the amd define and require can be added to window to be available to all test modules? Maybe add an amd setting that when set to true karma-jspm would take care of adding it to the window?
Thank you for contributing very helpful library to the community.
"jspm": "^0.16.19", "karma-jspm": "^2.0.1",
Given the karma.conf, test-main-karma.js, and windowTools.js below. The karma.conf loads the test-main-karma.js which adds the amd methods define and require to the window.
Then test-main-karma.js requires jquery, knockout, Q, and windowTools. When it pulls in the windowTools file the define method is undefined.
Could you please advise how to make sure that the amd define and require can be added to window to be available to all test modules? Maybe add an amd setting that when set to true karma-jspm would take care of adding it to the window?
Thank you for contributing very helpful library to the community.
karma.conf:
test-main-karma:
windowTools: