spyOn(window, 'require').andCallFake (dependencies, callBack, errorCallBack) ->
errorCallBack.call()
HiI am using RequireJS to load AMD modules on demand inside of an AMD module already loaded using RequireJS. I want to mock the `require()` call which is part of my testable code.My class under test looks like:define ['some/dependencies/here'], (dependency) ->class ClassUnderTest...._addWidget: (payload) ->require [payload.dependency], (dependency) ->#stuff i want to test in hereCheersGavin