-
Notifications
You must be signed in to change notification settings - Fork 429
Only output anything from tests when there's a failure #79
New issue
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
Conversation
sampart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my goodness, this is SUCH a big step on from what I did. Love it! Just one comment.
| }; | ||
| } | ||
|
|
||
| export function silenceDebugOutput(test: TestInterface<any>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In hindsight, should perhaps rename this to something else. I'll open a new PR for that.
This is an alternative / builds upon #75
The extra bits are:
typedTest.afterEach.alwaysinstead oftypedTest.afterEachbecause the latter only runs on passing tests.Merge / deployment checklist