Saw this question but renaming to jQuery
doesn't help.
I'm trying to get some basic unit-testing in Webstorm to work. Even without the tests it's not finding things defined in other files.
I have this config file:
server: http://localhost:9876
load:
- libs/jquery-1.9.0.min.js
- src/jquery.combine/jquery.combine.js
But it get this error when running the tests:
error loading file: /test/src/jquery.combine/jquery.combine.js:2: Uncaught TypeError: Cannot set property 'union' of undefined
The path's are a bit different, but clicking it show's the right file.
jquery.combine.js
looks like this:
(function($) {
$.union = function () {
// ...
};
}(jQuery));
Why is it not detecting jQuery? It includes it correctly because if I misspell the path it complains about missing file instead.