I am using browserify in my project and trying to require a module which require jQuery
as a global variable. I used browserify-shim
which I set to one of these one at a time
"jquery": "global:$"
"jquery": "global:jQuery"
"jquery": "$"
"jquery": "jQuery"
and still nothing seems to work. The library using global jQuery is also in the shim and set to "depends": ["jquery"]
Browserify makes the concatenated Javascript bundle correctly but I get this error Uncaught ReferenceError: jQuery is not defined
when running karma tests. I have the same browserify-shim config specified in the karma.conf.js. How can I set the jQuery to be global so that it can access it and not throw this error.