Commit bed8731
test(cli): the built-CLI refusal said every boot times out; the child exits 2 at once (#12648)
`RUN_JS_RESOLVES_FROM_DIST` ended "... and every boot below times out." The
first clause is right; the second is not what happens. On a closure-only tree
the child answers ` > Error: Command serve not found.` and exits 2 in ~200 ms,
and all four `bin/run.js` spawners reject from their `child.on('exit')` handler
with `serve exited 2 before <waitFor>` — never from their 150 s timer. A reader
following the old clause looks for a hang there is none of, while the real
reason is already on the child's stderr.
One clause, three sites: the constant, the byte-for-byte `.toBe()` pin that
guards its wording, and the docblock in
`serve-node-env-production-default.e2e.test.ts` that quotes the clause and
vouches for it being true of the siblings. The pin moves in this same commit —
that is the pin doing its job, not an obstacle — and stays `.toBe()`.
The tree already refuted itself in three places, all left intact: the comment
above the constant, this pin file's own header, and the paragraph two below the
vouching docblock, each recording `serve exited 2 before "Server is ready"`.
Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCd
Co-authored-by: Claude <noreply@anthropic.com>1 parent de47336 commit bed8731
3 files changed
Lines changed: 14 additions & 8 deletions
File tree
- packages/cli/test
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
100 | | - | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
0 commit comments