-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: after() hook is called for no subtests #51371
Labels
confirmed-bug
Issues with confirmed bugs.
test_runner
Issues and PRs related to the test runner subsystem.
Comments
marco-ippolito
added
test_runner
Issues and PRs related to the test runner subsystem.
confirmed-bug
Issues with confirmed bugs.
labels
Jan 5, 2024
in this case
The after hook is called AFTER the end of the root test |
nodejs-github-bot
pushed a commit
that referenced
this issue
Jan 8, 2024
PR-URL: #51389 Fixes: #51371 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
marco-ippolito
added a commit
to marco-ippolito/node
that referenced
this issue
Jan 12, 2024
PR-URL: nodejs#51389 Fixes: nodejs#51371 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
Medhansh404
pushed a commit
to Medhansh404/node
that referenced
this issue
Jan 19, 2024
PR-URL: nodejs#51389 Fixes: nodejs#51371 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
targos
pushed a commit
that referenced
this issue
Feb 15, 2024
PR-URL: #51389 Fixes: #51371 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
Reopening due to #51997 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
confirmed-bug
Issues with confirmed bugs.
test_runner
Issues and PRs related to the test runner subsystem.
Version
v20.10.0 (also on v22.0.0-pre)
Platform
Darwin Pulkits-MacBook-Air.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 arm64
Subsystem
No response
What steps will reproduce the bug?
code
run with cmd:
node --test --test-reporter tap file.test.mjs
Note:
before
hook is omitted butafter
hook didn't.How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
I didn't expect after() hook to be called. This should work same as global
after
hook.what i mean is that, if the run code below:
output is:
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: