Skip to content

[test] Convert unhandledRejection to uncaughtException  #1299

Open
@danielpeintner

Description

@danielpeintner

As mentioned in #1298 by @relu91 (see here #1298 (comment)) mocha ignores the new nodejs mechanism of reporting async unhandled exceptions.

We need to set
mocha --unhandled-rejections=strict --require ts-node/register --extension ts
in all package.json files.

Doing so for binding-http shows already some issues.
see #1298 (comment)

plus: we also might want to rework the test introduced in #1298 by simply doing something like
(await text(data.body)).should.eql("Test event");

Metadata

Metadata

Assignees

No one assigned

    Labels

    binding-httpIssues related to http protocol binding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions