We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I hate myself when I want to end a test and the only solution coming to my mind is:
foo(err) { if (err) { test.ok(false, 'error in foo, test finished'); test.done(); } }
Would be useful some kind of test.fail(error) method? do I miss something?
test.fail(error)
The text was updated successfully, but these errors were encountered:
+1 I am using this pattern too and it's not great.
Sorry, something went wrong.
pull request welcome!
This would basically be a hybrid of test.ok() and test.done(), right?
test.ok()
test.done()
No branches or pull requests
I hate myself when I want to end a test and the only solution coming to my mind is:
Would be useful some kind of
test.fail(error)
method? do I miss something?The text was updated successfully, but these errors were encountered: