@@ -14,7 +14,7 @@ test('Captures an error thrown in a route handler', async ({ baseURL, request })
1414 const exception = errorEvent . exception ?. values ?. [ 0 ] ;
1515 expect ( exception ?. value ) . toBe ( 'This is an exception with id 123' ) ;
1616 expect ( exception ?. mechanism ) . toEqual ( {
17- type : 'elysia' ,
17+ type : 'auto.http. elysia.on_error ' ,
1818 handled : false ,
1919 } ) ;
2020
@@ -69,7 +69,7 @@ test('Captures errors even when status is <= 299 in error handler', async ({ bas
6969
7070 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. value ) . toBe ( 'Error with 200 status' ) ;
7171 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. mechanism ) . toEqual ( {
72- type : 'elysia' ,
72+ type : 'auto.http. elysia.on_error ' ,
7373 handled : false ,
7474 } ) ;
7575} ) ;
@@ -85,7 +85,7 @@ test('Captures POST route errors', async ({ baseURL, request }) => {
8585
8686 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. value ) . toBe ( 'Post error' ) ;
8787 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. mechanism ) . toEqual ( {
88- type : 'elysia' ,
88+ type : 'auto.http. elysia.on_error ' ,
8989 handled : false ,
9090 } ) ;
9191} ) ;
@@ -102,7 +102,7 @@ test('Captures thrown string errors', async ({ baseURL, request }) => {
102102 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. value ) . toBe ( 'String error message' ) ;
103103 expect ( errorEvent . exception ?. values ?. [ 0 ] ?. mechanism ) . toEqual (
104104 expect . objectContaining ( {
105- type : 'elysia' ,
105+ type : 'auto.http. elysia.on_error ' ,
106106 handled : false ,
107107 } ) ,
108108 ) ;
0 commit comments