Skip to content

Commit 41e84d6

Browse files
committed
Update e2e tests
1 parent a710921 commit 41e84d6

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

Diff for: dev-packages/e2e-tests/test-applications/nestjs-fastify/tests/transactions.test.ts

-34
Original file line numberDiff line numberDiff line change
@@ -49,40 +49,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
4949
expect(transactionEvent).toEqual(
5050
expect.objectContaining({
5151
spans: expect.arrayContaining([
52-
{
53-
span_id: expect.stringMatching(/[a-f0-9]{16}/),
54-
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
55-
data: {
56-
'sentry.origin': 'manual',
57-
'fastify.type': 'middleware',
58-
'plugin.name': '@fastify/middie',
59-
'hook.name': 'onRequest',
60-
},
61-
description: 'middleware - runMiddie',
62-
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
63-
start_timestamp: expect.any(Number),
64-
timestamp: expect.any(Number),
65-
status: 'ok',
66-
origin: 'manual',
67-
},
68-
{
69-
span_id: expect.stringMatching(/[a-f0-9]{16}/),
70-
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
71-
data: {
72-
'sentry.origin': 'auto.http.otel.fastify',
73-
'sentry.op': 'request_handler.fastify',
74-
'plugin.name': '@fastify/middie',
75-
'fastify.type': 'request_handler',
76-
'http.route': '/test-transaction',
77-
},
78-
description: '@fastify/middie',
79-
parent_span_id: expect.stringMatching(/[a-f0-9]{16}/),
80-
start_timestamp: expect.any(Number),
81-
timestamp: expect.any(Number),
82-
status: 'ok',
83-
op: 'request_handler.fastify',
84-
origin: 'auto.http.otel.fastify',
85-
},
8652
{
8753
span_id: expect.stringMatching(/[a-f0-9]{16}/),
8854
trace_id: expect.stringMatching(/[a-f0-9]{32}/),

Diff for: dev-packages/e2e-tests/test-applications/node-fastify-4/tests/errors.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test('Does not send 4xx errors by default', async ({ baseURL }) => {
3434
// We should only see the 5xx error captured due to shouldHandleError's default behavior
3535

3636
// Create a promise to wait for the 500 error
37-
const serverErrorPromise = waitForError('node-fastify', event => {
37+
const serverErrorPromise = waitForError('node-fastify-4', event => {
3838
// Looking for a 500 error that should be captured
3939
return !!event.exception?.values?.[0]?.value?.includes('This is a 5xx error');
4040
});

0 commit comments

Comments
 (0)