I'm using bluebirdjs library for my promise implementation but I can't find a way to ignore the .catch((err) => err) with the code coverage. Is this possible?
I have the same question. Is there a way to not take those into account in the coverage?
I think you want to take this into account, why wouldn't you? bad code in those catch blocks will take down your app unless you test those paths too.
I have the same problem. I use the following code and it works.
.catch(/* istanbul ignore next */ err => next(err));
Most helpful comment
I have the same problem. I use the following code and it works.