freeCodeCamp / freeCodeCamp/curriculum-helpers
Top level await not available in before all hook
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 28
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
When setting up for DOM tests it's not currently possible to use top-level `await`. The reason for this is simply that it is evaluated in a script, not a module.
Ideally we should either switch to using modules, but that might be challenging given how we currently deploy the test runner - it's attached to the window object after running a script.
Contributor guide
Assessment
This issue has not been assessed yet.