Skip to content

console.log in node:test ? #44372

Closed
Closed
@masx200

Description

@masx200

What is the problem this feature will solve?

import test from "node:test";
test("hello world", () => {
    console.log("hello world");

});
{"type":"module"}
 node --test
TAP version 13
# Subtest: D:\\Documents\\test\\test.js
ok 1 - D:\\Documents\\test\\test.js
  ---
  duration_ms: 0.1560414
  ...
1..1
# tests 1
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 0.2308918

What is the feature you are proposing to solve the problem?

The log of the console in the test should print

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions