Repository navigation
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
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.
Loading