Commit 7a0570e
test(mcp): align legacy attach.test.js with Task 2.2 contract
The pre-existing daemon/attach.test.js had a case asserting the OLD
attachToDaemon behavior (rejection IS the original error). After Task
2.2, attachToDaemon now wraps the underlying error in DaemonAttachError
with the original preserved as `cause`. Updated the assertion to match
the new contract — same shape as the new daemon-attach.test.ts but
exercised through the legacy test's setup.
Caught by `npm test` after the 0.8.41 release commit; no new code
change needed beyond aligning the existing assertion.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7ba92fc commit 7a0570e
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
139 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| |||
0 commit comments