-
Notifications
You must be signed in to change notification settings - Fork 0
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
Assertions always pass #3
Comments
Oh you'll always need to |
So: Given(/test/, async function () {
await waitFor(() => {
return { hello: 'abc' }
}).to.deep.equal({ hello: 'def' })
await waitFor(() => 'abc').to.equal('def')
}) (I don't know for sure if Cucumber supports Promise-returning test functions, but seems like it does) |
(I guess the TS error you were seeing confused you. TypeScript was wrong in saying that |
Sorry for the confusion, I thought the fix would be the opposite. Thanks, now with await it works fine. |
Okay great! |
Hello,
I'm always getting all assertions passed which is not right.
I believe I'm doing all right. Please assist.
The text was updated successfully, but these errors were encountered: