Open
Description
I filed the the Typescript side of this at microsoft/TypeScript#39387.
"expect.eventually" returns a Chai.PromisedAssertion which doesn't warn when using await. Which means "await expect(myPromise).eventually.to.equal(arg)" will throw UnhandledPromiseRejectionWarning if the assertion is wrong but the test will still succeed.
if expect.eventually actually returns a promise it should be safe to use with await.
Metadata
Metadata
Assignees
Labels
No labels