File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/integrations/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,14 +215,14 @@ describe('ExtraErrorData()', () => {
215
215
} ) ;
216
216
} ) ;
217
217
218
- it ( 'captures Error causes when captureErrorCause = true' , ( ) => {
218
+ it ( 'captures Error causes when captureErrorCause = true (default) ' , ( ) => {
219
219
// Error.cause is only available from node 16 upwards
220
220
const nodeMajorVersion = parseInt ( process . versions . node . split ( '.' ) [ 0 ] ) ;
221
221
if ( nodeMajorVersion < 16 ) {
222
222
return ;
223
223
}
224
224
225
- const extraErrorDataWithCauseCapture = extraErrorDataIntegration ( { captureErrorCause : true } ) ;
225
+ const extraErrorDataWithCauseCapture = extraErrorDataIntegration ( ) ;
226
226
227
227
// @ts -expect-error The typing .d.ts library we have installed isn't aware of Error.cause yet
228
228
const error = new Error ( 'foo' , { cause : { woot : 'foo' } } ) as ExtendedError ;
@@ -251,7 +251,7 @@ describe('ExtraErrorData()', () => {
251
251
return ;
252
252
}
253
253
254
- const extraErrorDataWithoutCauseCapture = extraErrorDataIntegration ( ) ;
254
+ const extraErrorDataWithoutCauseCapture = extraErrorDataIntegration ( { captureErrorCause : false } ) ;
255
255
256
256
// @ts -expect-error The typing .d.ts library we have installed isn't aware of Error.cause yet
257
257
const error = new Error ( 'foo' , { cause : { woot : 'foo' } } ) as ExtendedError ;
You can’t perform that action at this time.
0 commit comments