-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Version
v18.1.0
Platform
Win11
Subsystem
No response
What steps will reproduce the bug?
Use test runner in node v18 to run the test.
test('synchronous passing test', (t) => {
console.log('abc');
assert.strictEqual(1, 1);
});
Run the code above and notice that string abc
is not printed in the console.
How often does it reproduce? Is there a required condition?
everytime
What is the expected behavior?
We could use console.log()
in test runner.
What do you see instead?
console.log()
does not work in test runner.
Additional information
We need output some debug information during the test. We were like a blind when nothing could be printed to the console.
brainkim, lunar-qin and OuttaPencilbrainkim
Metadata
Metadata
Assignees
Labels
test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.