Skip to content
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

Top-level awaits #7

Open
tolauwae opened this issue Jan 23, 2024 · 1 comment
Open

Top-level awaits #7

tolauwae opened this issue Jan 23, 2024 · 1 comment

Comments

@tolauwae
Copy link
Member

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.

tolauwae added a commit that referenced this issue Jan 23, 2024
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`. see #7
tolauwae added a commit that referenced this issue Jan 23, 2024
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`. see #7
@tolauwae tolauwae changed the title Mocha prevents top-level awaits Top-level awaits Aug 7, 2024
@tolauwae
Copy link
Member Author

tolauwae commented Aug 7, 2024

Mocha has been removed, but top-level awaits still don't work in Typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant