-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Version
20.2.0
Platform
Linux 6.3.3-arch1-1 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
node --test test.js
const { before, after, test } = require('node:test')
before(() => console.log('before'))
after(() => console.log('after'))
test('test', () => console.log('test'))
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
Expect printing after
on stdout
What do you see instead?
Only see before
and test
printing on stdout
Additional information
No response
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.