Cannot read property 'stack' of undefined
Opened this issue · 0 comments
levidobson commented
I have a beforeEach hook in which I call a promise that can be rejected, without parameters (Promise.reject()
). This results in the above exception output to console. This problem can be resolved by passing an Error object in the reject function (reject(new Error('hello world'))
), however I am not the maintainer of the package that rejects the promise.
The error happens in jasminewd2 in index.js at line 100 (err.stack = err.stack + '\nFrom asynchronous test: \n' + driverError.stack;
).