test_runner: do not read from `process.argv` and `process.cwd()` in run()
Currently the codebase for
node/lib/internal/test_runner/runner.js
Line 472 in 362afa5
| function run(options = kEmptyObject) { |
accesses some poperties of process, capturing some options there. However, we also expose run() to the end users, therefore we should capture all this information in
node/lib/internal/main/test_runner.js
Line 68 in 362afa5
| const options = { |
and pass it down to run() as options.