nodejs / nodejs/node

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

Open
#63,786 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
122k
Forks
37.3k
Avg merge
4d 2h
Merged PRs (30d)
283

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR 63781 and the existing test:watch:restarted reporter event, then read doc/api/test.md for its public API documentation. Confirm whether exposing the triggering file is an API change, add the corresponding test and documentation, and verify that the event reports the restart source.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.