You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 with test did not finish before its parent and was cancelled error message.
> tsc --noEmit && node --import tsx --test --watch src/**/*.test.ts▶ ping controller tests ✔ should respond pong (0.938915ms)▶ ping controller tests (2.118648ms)✖ src/controllers/ping.test.ts (306.529408ms) 'test did not finish before its parent and was cancelled'ℹ tests 2ℹ suites 1ℹ pass 1ℹ fail 0ℹ cancelled 1ℹ skipped 0ℹ todo 0ℹ duration_ms 318.039034
Additional information
No response
The text was updated successfully, but these errors were encountered:
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: