redux-saga-test-plan icon indicating copy to clipboard operation
redux-saga-test-plan copied to clipboard

Noisy output when testing exceptions

Open CosmaTrix opened this issue 5 years ago • 1 comments

Hi there,

I've been trying to test an exception. It's similar to the Throw Errors example and the test itself works as expected, but the output is really noisy.

console.error node_modules/@redux-saga/core/dist/io-9e79e69e.js:115
  Error:
   # the complete error stack
console.error node_modules/@redux-saga/core/dist/io-9e79e69e.js:116
    The above error occurred in task saga

I might be wrong, but it looks like the thrown exception is not handled internally. I suppose that the error stack shouldn't be displayed here and the error should be caught by .throws. Any thoughts?

Thanks!

CosmaTrix avatar Nov 02 '19 06:11 CosmaTrix

@jp928 would really appreciate if this can be resolved. It is still causing issue and makes the test result really noisy

zainab-amir avatar Nov 12 '20 13:11 zainab-amir