Skip to content

test(harness): make VerdaccioRegistry.stop() actually terminate the process - #36352

Closed
robobun wants to merge 3 commits into
mainfrom
farm/8a8804a5/verdaccio-stop-kill-signal
Closed

robobun wants to merge 3 commits into
mainfrom
farm/8a8804a5/verdaccio-stop-kill-signal

test(harness): make VerdaccioRegistry.stop() actually terminate the p…

f7fdd10
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 29, 2026 in 7m 54s

Code review found 1 potential issue

Found 1 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit test/harness.ts:1883 #stopped flag never reset in start() — suppresses crash logs on reuse

Annotations

Check warning on line 1883 in test/harness.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

#stopped flag never reset in start() — suppresses crash logs on reuse

`#stopped` is set to `true` in `stop()` but never reset in `start()`, so if a `VerdaccioRegistry` instance is ever restarted (start → stop → start), the second run's `exit` listener will see `#stopped === true` and silently swallow the "Verdaccio exited with code …" diagnostic on a mid-test crash. Adding `this.#stopped = false;` at the top of `start()` keeps the flag's stated invariant ("quiet on intentional stop, loud on unexpected crash") intact across reuse.