Skip to content

Commit ceaa144

Browse files
committed
test: fix assertion expectation to expect parent id span
1 parent bdb4be3 commit ceaa144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-packages/e2e-tests/test-applications/create-next-app/tests/server-errors.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ test('Sends a server-side exception to Sentry', async ({ baseURL }) => {
2424

2525
expect(errorEvent.transaction).toEqual('GET /api/error');
2626

27-
expect(errorEvent.contexts?.trace).toMatchObject({
27+
expect(errorEvent.contexts?.trace).toEqual({
2828
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
2929
span_id: expect.stringMatching(/[a-f0-9]{16}/),
30+
// Will be present since we no longer drop Next.js spans in the wrapper
31+
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
3032
});
3133
});

0 commit comments

Comments
 (0)