nodejs / nodejs/node

--test --watch should report the file that triggered the restart

未关闭
#63,786 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

feature request
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

When this PR merge https://github.com/nodejs/node/pull/63781#pullrequestreview-4444888412, Now on Node.js node --watch command, the file that triggered the restart in terminal response

it would also be good now on should be trigger info in test:watch:restarted event ?

we must check these things:
test:watch:restartedcommand public a reporter event, consuming custom report, we if added data is an api change

so should be add document and test doc/api/test.md

any feedback welcome

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先查看 PR 63781 和现有的 test:watch:restarted reporter 事件,然后阅读 doc/api/test.md 中关于其公共 API 的文档。确认公开触发重启的文件是否属于 API 变更,添加相应的测试和文档,并验证该事件会报告重启来源。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, nodejs
领域
api, cli, testing-qa
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。