Skip to content

'node --test --watch' fails: node: --watch requires specifying a file #49617

@strager

Description

@strager

Version

v20.6.1

Platform

Linux strapurp 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Run command: node --test --watch

How often does it reproduce? Is there a required condition?

100% of the time. I'm not aware of any preconditions.

What is the expected behavior? Why is that the expected behavior?

Tests run.

What do you see instead?

error message:

node: --watch requires specifying a file

then exit code 9.

Additional information

This feature is documented here: https://nodejs.org/api/test.html#watch-mode

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