Skip to content

Proxying makes use order matter with chai-exclude and chai-as-promised #266

@kwasimensah

Description

@kwasimensah

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions