Commit 07adbff
committed
fix(test): repair mcp-cli-activation-preview in-process connect after JSONbored#7764's entrypoint guard
JSONbored#7764 gated the bin's top-level `await server.connect(new StdioServerTransport())` behind
isProcessEntrypoint() (realpath(argv[1]) === realpath(this module)). JSONbored#7887's activation-preview
test set argv[1] to the bare string "loopover-mcp", so realpathSync throws, the guard is false,
the top-level connect is skipped, its mocked in-memory transport is never wired to the server,
and client.connect hangs to the 10s hook timeout. JSONbored#7887 merged just before JSONbored#7764, so its CI never
saw the guard; main has been latently red on this test since. Point argv[1] at the bin's own
resolved path so the guard is satisfied on import. Surfaced here because this PR's bin change pulls
the mcp-cli-*.test.ts suite into scoped selection.1 parent 58e65dd commit 07adbff
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments