Skip to content

Top-level awaits #7

@tolauwae

Description

@tolauwae

Problem: Mocha custom reporter still does not support ES Modules.
As long as we use mocha, we cannot have top-level awaits, such as the one in module.ts.

const request = await Message.uploadFile(folder + module);

Workarounds like calling an async function do not work either, in that case the tests do not get loaded.

Why we want this fixed: However, awaits when building tests is extremely useful. We often want to compile stuff at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions