freeCodeCamp / freeCodeCamp/curriculum-helpers

Top level await not available in before all hook

Open
#538 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.