now-we-test icon indicating copy to clipboard operation
now-we-test copied to clipboard

How do you test broken paths?

Open awei01 opened this issue 5 years ago • 0 comments

Hi, this module works well with happy paths, but I can't seem to test broken paths.

My lambda calls an external service. I mock the service to throw an error and then handle the error within my code. However, these lines (https://github.com/lucasconstantino/now-we-test/blob/master/lib/simulator.js#L56-L69) seem to capture the thrown error and not let my lambda handle the error.

Any insight would be appreciated.

awei01 avatar Jun 04 '19 15:06 awei01