Repository navigation
Commit e4e8b0a
test(workspace): return a subprocess-like emitter from the
`mock.module` is process-wide in Bun, and `oauth-browser.test.ts` mocks the
same module. The MCP OAuth path attaches `error`/`exit` handlers to whatever
`open` resolves to, so a stub resolving to `undefined` could break those tests
if it were the registered one. Return an `EventEmitter`, as that file does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>open stub1 parent b324131 commit e4e8b0a
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments