test runner runs beforeEach or test case before "before hook" finished #52764
Labels
confirmed-bug
Issues with confirmed bugs.
test_runner
Issues and PRs related to the test runner subsystem.
Version
v22.0.0
Platform
Darwin Kernel Version 23.4.0
Subsystem
test_runner
What steps will reproduce the bug?
run the following code with node 22.0.0.
the expected output is
instead of
If the hooks are not async then the order is correct.
In earlier node version the
await
keyword helped before the hooks but in node 22.0.0 it doesn't work.How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
the expected console log is
What do you see instead?
Additional information
if you need git repo https://github.com/ert78gb/node-22-test-runner-async-hooks
The text was updated successfully, but these errors were encountered: