Open 0xmaayan opened 3 weeks ago
Minimal, Reproducible Example
This isn't an MRE 🙂 - could you please post one that we can get running quickly locally? We're a small maintenance team and don't have the time to piece stuff together.
https://antfu.me/posts/why-reproductions-are-required -> https://antfu.me/posts/why-reproductions-are-required#reproducible-projects-or-playgrounds
Thanks!
Bug Report Checklist
faq
label, but none matched my issue.Expected
I am using mocha to build a testing framework and wrapping mocha's describe block with a custom describe block function and injecting a custom internal instance to be used in tests suites by the end user.
Everything was working as expected, until I added an internal process that runs as a root hook and when finishes assign the
customInstance
a value, that should be used in tests suites by the end user.Actual
Looks like the custom describe block doesnt await for the root hook to finish before assigning the new global value to be used in a test suite by the end user
Minimal, Reproducible Example
Versions
Additional Info
No response