You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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
changed the title
Mocha prevents top-level awaits
Top-level awaits
Aug 7, 2024
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
.latch/test/module.ts
Line 19 in e549720
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.
The text was updated successfully, but these errors were encountered: