Skip to content

Commit ccca6d4

Browse files
committed
fix: clear callbacks in beforeEach to ensure clean state
1 parent 1f1b6de commit ccca6d4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/pty-echo.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('PTY Echo Behavior', () => {
1717

1818
beforeEach(() => {
1919
initManager(fakeClient)
20+
clearRawOutputCallbacks()
2021
})
2122

2223
afterEach(() => {

test/web-server.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('Web Server', () => {
1313

1414
beforeEach(() => {
1515
initManager(fakeClient)
16+
clearRawOutputCallbacks()
1617
})
1718

1819
afterEach(() => {
@@ -52,6 +53,7 @@ describe('Web Server', () => {
5253

5354
beforeEach(async () => {
5455
manager.cleanupAll() // Clean up any leftover sessions
56+
clearRawOutputCallbacks()
5557
serverUrl = await startWebServer({ port: 8771 })
5658
})
5759

0 commit comments

Comments
 (0)