-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Version
v20.4.0
Platform
Darwin lucille.lan 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:23 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6020 arm64
Subsystem
test runner
What steps will reproduce the bug?
Running this with node --test leads to the error "test could not be started because its parent finished"
import { describe, it } from "node:test";
describe("describe", async () => {
await new Promise((resolve) => setTimeout(resolve, 10));
it("it inside describe", async () => {});
});How often does it reproduce? Is there a required condition?
It's deterministic.
What is the expected behavior? Why is that the expected behavior?
describe's documentation indicates that an async function can be passed, so it should be awaited.
What do you see instead?
I get the error test could not be started because its parent finished.
Additional information
No response
JonathanNasc, electrovir and laurensdc
Metadata
Metadata
Assignees
Labels
test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.