nodejs/node

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

Open

#53,867 创建于 2024年7月16日

在 GitHub 查看
 (13 评论) (5 反应) (0 负责人)JavaScript (35,535 fork)batch import
good first issuetest_runner

仓库指标

Star
 (117,218 star)
PR 合并指标
 (平均合并 18天 17小时) (30 天内合并 219 个 PR)

描述

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.

贡献者指南