Skip to content

Commit d4d0dfe

Browse files
committed
fix: Mock the pty call
1 parent ab37305 commit d4d0dfe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/orchestrator/connect/socket-server.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ vi.mock(import('../../../src/orchestrators/login'), async () => {
2222
}
2323
})
2424

25+
vi.mock('@homebridge/node-pty-prebuilt-multiarch', async () => {
26+
return {
27+
spawn: () => {
28+
return {
29+
onData: () => {},
30+
onExit: () => {},
31+
}
32+
}
33+
}
34+
})
35+
2536
vi.mock('node:fs', async () => {
2637
const { fs } = await import('memfs');
2738
return fs

0 commit comments

Comments
 (0)