mjackson/expect

Make `toNotThrow` say what was thrown

Open

#193 opened on Feb 3, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (132 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (2,290 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

expect(() => foo()).toNotThrow

fails when foo throws, but it doesn't tell me what error foo threw. This would be really useful for debugging. I'm happy to make a PR :)

PS: I'm also happy to try to help out more if you need help with this module :)

Contributor guide