--experimental-test-coverage
cannot be used with --test
#47669
Description
Version
v20.0.0
Platform
Linux executive 5.19.0-40-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 23 21:39:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
test
What steps will reproduce the bug?
Running node --test
lookup for tests in the current project folder. When adding the --experimental-test-coverage
flag I get the error node: --experimental-test-coverage cannot be used with --test
, and if I remove the --test
flag and left the --experimental-test-coverage
flag alone, it throws me to a REPL without looking for the tests. Only way to run the tests with code coverage is by executing it explicitly with node --experimental-test-coverage test.js
, passing test files as arguments.
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
When running node --experimental-test-coverage
, it should implicitly call --test
and look for the test files, or allow to have both --test
and --experimental-test-coverage
flags in the same command.
What do you see instead?
Error node: --experimental-test-coverage cannot be used with --test
, or a REPL if I remove the --test
flag.
Additional information
No response