File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1676,12 +1676,17 @@ describe('Client', () => {
1676
1676
1677
1677
client . captureEvent ( { message : 'hello' } , { } , scope ) ;
1678
1678
1679
- expect ( TestClient . instance ! . event ! . exception ! . values ! [ 0 ] ) . toStrictEqual ( { type : 'Error' , value : 'sorry' } ) ;
1679
+ expect ( TestClient . instance ! . event ! . exception ! . values ! [ 0 ] ) . toStrictEqual ( {
1680
+ type : 'Error' ,
1681
+ value : 'sorry' ,
1682
+ mechanism : { type : 'internal' , handled : false } ,
1683
+ } ) ;
1680
1684
expect ( captureExceptionSpy ) . toBeCalledWith ( exception , {
1681
1685
data : {
1682
1686
__sentry__ : true ,
1683
1687
} ,
1684
1688
originalException : exception ,
1689
+ mechanism : { type : 'internal' , handled : false } ,
1685
1690
} ) ;
1686
1691
expect ( loggerWarnSpy ) . toBeCalledWith (
1687
1692
`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${ exception } ` ,
You can’t perform that action at this time.
0 commit comments