Skip to content

Commit 5a235ba

Browse files
committed
fix test but this depends on the react change
1 parent 993b1e5 commit 5a235ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/remix/test/integration/test/client/errorboundary.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ test('should capture React component errors.', async ({ page }) => {
2727
type: 'React ErrorBoundary Error',
2828
value: 'Sentry React Component Error',
2929
stacktrace: { frames: expect.any(Array) },
30+
mechanism: { type: 'chained', handled: false },
3031
},
3132
]
3233
: []),
3334
{
3435
type: 'Error',
3536
value: 'Sentry React Component Error',
3637
stacktrace: { frames: expect.any(Array) },
37-
mechanism: { type: useV2 ? 'instrument' : 'generic', handled: true },
38+
// In v2 this error will be marked unhandled, in v1 its handled because of LinkedErrors
39+
// This should be fine though because the error boundary's error is marked unhandled
40+
mechanism: { type: useV2 ? 'instrument' : 'generic', handled: !useV2 },
3841
},
3942
]);
4043
});

0 commit comments

Comments
 (0)