nodejs/node

test_runner: do not read from `process.argv` and `process.cwd()` in run()

Open

#53.867 geöffnet am 16. Juli 2024

Auf GitHub ansehen
 (13 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)JavaScript (35.535 Forks)batch import
good first issuetest_runner

Repository-Metriken

Stars
 (117.218 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 18T 17h) (219 gemergte PRs in 30 T)

Beschreibung

Currently the codebase for https://github.com/nodejs/node/blob/362afa52ebe462a39874915e5e70d261db153c58/lib/internal/test_runner/runner.js#L472 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 https://github.com/nodejs/node/blob/362afa52ebe462a39874915e5e70d261db153c58/lib/internal/main/test_runner.js#L68 and pass it down to run() as options.

Contributor Guide