-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[draft] feat: have assertions return booleans #2564
Conversation
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.
So far so good. Could you have a look at the test failures too?
promise.then(() => { | ||
lastPassed = true; | ||
}, error => { | ||
return promise.then(() => |
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.
Let's change this to an async function.
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.
Are you still spending time on this project? I'd like to setup a call to discuss the code if you're interested? Don't want to waste time trying to interpret the code would be much quicker for you to walk through it.
}, error => { | ||
return promise.then(() => | ||
true | ||
, error => { | ||
lastFailure = error; |
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.
This should return false
, no?
}, | ||
skip: () => {}, | ||
experiments: {}, | ||
experiments: { | ||
likeAssertion: true |
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.
This experiment has been removed, the old line was fine 😉
Closing in favor of #2586. |
Addresses issue: #2455, having assertions return booleans.