Since the recent 3.1.0 update our tests get broken with a noCallThru error:
TypeError: 'undefined' is not an object (evaluating 'stub['@noCallThru']')
at file:///Users/hayesmaker/Workspace/contracts/high5/online/client_code/HTML5/CasinoEngine/build/js/tests.js:26124
here's the area it refers to from our browserify bundle:,, the actual error comes form this line:
var noCallThru = stubWideNoCallThru || !!stub['@noCallThru'];
proxyquire._proxy = function (require_, request) {
function original() {
return require_(request);
}
if (!stubs || !stubs.hasOwnProperty(request)) return original();
var stub = stubs[request];
if (stub === null) throw moduleNotFoundError(request)
var stubWideNoCallThru = !!stubs['@noCallThru'] && stub['@noCallThru'] !== false;
var noCallThru = stubWideNoCallThru || !!stub['@noCallThru']; //
return noCallThru ? stub : fillMissingKeys(stub, original());
};
Since the recent 3.1.0 update our tests get broken with a noCallThru error:
here's the area it refers to from our browserify bundle:,, the actual error comes form this line:
var noCallThru = stubWideNoCallThru || !!stub['@noCallThru'];
and our test setup is written like this: