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

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