Watch mode duplicates and fails on second run #52936
Labels
test_runner
Issues and PRs related to the test runner subsystem.
watch-mode
Issues and PRs related to watch mode
Version
v22.1.0
Platform
Darwin Mayas-Personal-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
I wrote a simple function and test as the following.
node --test
runs successfully.node --test --watch
runs the test twice and fails on the second run.Test:
When I run
node --test
, it succeeds.How often does it reproduce? Is there a required condition?
Consistently every time.
What is the expected behavior? Why is that the expected behavior?
I expect the runner to stop after the first run with success. When a change is made to the test file, the changed test file is run only once again.
What do you see instead?
When I ran
node --test --watch
, the same test was run twice failing the second time withtest did not finish before its parent and was cancelled
error message.Additional information
No response
The text was updated successfully, but these errors were encountered: