@@ -8,7 +8,7 @@ import { SentryGlobalFilter } from '../src/setup';
88
99vi . mock ( '../src/helpers' , ( ) => ( {
1010 isExpectedError : vi . fn ( ) ,
11- isWsException : vi . fn ( ) ,
11+ isWsOrRpcException : vi . fn ( ) ,
1212} ) ) ;
1313
1414vi . mock ( '@sentry/core' , ( ) => ( {
@@ -28,7 +28,7 @@ describe('SentryGlobalFilter', () => {
2828 let mockLoggerError : any ;
2929 let mockLoggerWarn : any ;
3030 let isExpectedErrorMock : any ;
31- let isWsExceptionMock : any ;
31+ let isWsOrRpcExceptionMock : any ;
3232
3333 beforeEach ( ( ) => {
3434 vi . clearAllMocks ( ) ;
@@ -59,7 +59,7 @@ describe('SentryGlobalFilter', () => {
5959 mockCaptureException = vi . spyOn ( SentryCore , 'captureException' ) . mockReturnValue ( 'mock-event-id' ) ;
6060
6161 isExpectedErrorMock = vi . mocked ( Helpers . isExpectedError ) . mockImplementation ( ( ) => false ) ;
62- isWsExceptionMock = vi . mocked ( Helpers . isWsException ) . mockImplementation ( ( ) => false ) ;
62+ isWsOrRpcExceptionMock = vi . mocked ( Helpers . isWsOrRpcException ) . mockImplementation ( ( ) => false ) ;
6363 } ) ;
6464
6565 describe ( 'HTTP context' , ( ) => {
@@ -274,7 +274,7 @@ describe('SentryGlobalFilter', () => {
274274
275275 it ( 'does not capture expected WebSocket exceptions and emits their response' , ( ) => {
276276 isExpectedErrorMock . mockReturnValueOnce ( true ) ;
277- isWsExceptionMock . mockReturnValueOnce ( true ) ;
277+ isWsOrRpcExceptionMock . mockReturnValueOnce ( true ) ;
278278 const exception = {
279279 getError : ( ) => 'Expected WebSocket exception' ,
280280 initMessage : vi . fn ( ) ,
0 commit comments