Skip to content

Commit 34cd7af

Browse files
committed
fix missing integration test
1 parent 2a1c3c5 commit 34cd7af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('should capture React component errors.', async ({ page }) => {
1111

1212
const [pageloadEnvelope, errorEnvelope] = envelopes;
1313

14-
expect(pageloadEnvelope.contexts?.trace.op).toBe('pageload');
14+
expect(pageloadEnvelope.contexts?.trace?.op).toBe('pageload');
1515
expect(pageloadEnvelope.tags?.['routing.instrumentation']).toBe('remix-router');
1616
expect(pageloadEnvelope.type).toBe('transaction');
1717
expect(pageloadEnvelope.transaction).toBe(
@@ -34,7 +34,7 @@ test('should capture React component errors.', async ({ page }) => {
3434
type: 'Error',
3535
value: 'Sentry React Component Error',
3636
stacktrace: { frames: expect.any(Array) },
37-
mechanism: { type: useV2 ? 'instrument' : 'generic', handled: true },
37+
mechanism: { type: useV2 ? 'instrument' : 'generic', handled: false },
3838
},
3939
]);
4040
});

0 commit comments

Comments
 (0)