You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
within a stream as part of a pipeline, I throw an error and would like to test whether the error was thrown under the circumstances I expect it to be thrown. I am sure that my code throws the error, but I cannot catch it within the unit test.
Wrapping everything in try ... catch or using expect(named_func).to.throw("..."); also doesn't kick in. This is odd and I am starting to think that there might be a bug.
More explanation on stackoverflow: https://stackoverflow.com/questions/67610745/javascript-pipeline-not-catching-an-error-i-throw/67611032?noredirect=1#comment119520424_67611032
Probably there is something I am doing wrong. Please point me to the right direction.
This discussion was converted from issue #1392 on May 21, 2021 10:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
within a stream as part of a pipeline, I throw an error and would like to test whether the error was thrown under the circumstances I expect it to be thrown. I am sure that my code throws the error, but I cannot catch it within the unit test.
Wrapping everything in try ... catch or using expect(named_func).to.throw("..."); also doesn't kick in. This is odd and I am starting to think that there might be a bug.
More explanation on stackoverflow: https://stackoverflow.com/questions/67610745/javascript-pipeline-not-catching-an-error-i-throw/67611032?noredirect=1#comment119520424_67611032
Probably there is something I am doing wrong. Please point me to the right direction.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions