now-we-test
now-we-test copied to clipboard
How do you test broken paths?
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.