@@ -32,7 +32,7 @@ describeIntegration("IpcMain resumeStream integration tests", () => {
3232 // Wait for stream to start
3333 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
3434 const streamStartEvent = await collector1 . waitForEvent ( "stream-start" , 5000 ) ;
35- expect ( streamStartEvent ) . toBeDefined ( ) ;
35+ expect ( streamStartEvent ) . not . toBeNull ( ) ;
3636
3737 // Wait for at least some content or tool call to start
3838 await waitFor ( ( ) => {
@@ -87,11 +87,11 @@ describeIntegration("IpcMain resumeStream integration tests", () => {
8787
8888 // Wait for new stream to start
8989 const resumeStreamStart = await collector2 . waitForEvent ( "stream-start" , 5000 ) ;
90- expect ( resumeStreamStart ) . toBeDefined ( ) ;
90+ expect ( resumeStreamStart ) . not . toBeNull ( ) ;
9191
9292 // Wait for stream to complete
9393 const streamEnd = await collector2 . waitForEvent ( "stream-end" , 30000 ) ;
94- expect ( streamEnd ) . toBeDefined ( ) ;
94+ expect ( streamEnd ) . not . toBeNull ( ) ;
9595
9696 // Verify no new user message was created
9797 collector2 . collect ( ) ;
@@ -174,11 +174,11 @@ describeIntegration("IpcMain resumeStream integration tests", () => {
174174
175175 // Wait for stream to start
176176 const streamStart = await collector . waitForEvent ( "stream-start" , 10000 ) ;
177- expect ( streamStart ) . toBeDefined ( ) ;
177+ expect ( streamStart ) . not . toBeNull ( ) ;
178178
179179 // Wait for stream to complete
180180 const streamEnd = await collector . waitForEvent ( "stream-end" , 30000 ) ;
181- expect ( streamEnd ) . toBeDefined ( ) ;
181+ expect ( streamEnd ) . not . toBeNull ( ) ;
182182
183183 // Verify no user message was created (resumeStream should not add one)
184184 collector . collect ( ) ;
0 commit comments