Has anyone used mockjax to test jasmine blocks with webpack? I keep getting $ .mockjax undefined. It has something to do with
//NOTE. To use Mockjax as a Node module, you MUST provide factory // a valid version of jQuery and a window object (global scope): // var mockjax = require ('jquery.mockjax') (jQuery, window);
but I cannot use require in the AMD module. I tried using padding and import loader using webpack, but I might have done something wrong because I do not quite understand the problem.
Craig source
share