Skip to content

node-qunit is using Node API methods which are deprecated in Node versions allowed by the node-engine property #147

@arenglish-quicksystems

Description

@arenglish-quicksystems

OS: WIndows 11
Node version: 22.19.0
node-qunit version: 2.0.1
qunit version: 2.24.1

The node-qunit cli is using Node's util.print() which seems to have been removed from the Node API since version 11 or 12. The node-qunit node engine property allows for versions of node that no longer support this method call. After installation of node-qunit, running qunit -h in my environment with Node version 24.19.0 throws the following error:

path/to/project/node_modules/node-qunit/bin/cli.js:102
            util.print(help);
                 ^

TypeError: util.print is not a function
    at Object.<anonymous> (path/to/project/node_modules/node-qunit/bin/cli.js:102:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions