Skip to content

Commit af1dae2

Browse files
committed
add some tests
1 parent f12f5c6 commit af1dae2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev-packages/e2e-tests/test-applications/nestjs-8/tests/transactions.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ test('Sends an API route transaction', async ({ baseURL }) => {
4646
origin: 'auto.http.otel.http',
4747
});
4848

49+
expect(transactionEvent.contexts?.response).toEqual({
50+
status_code: 200,
51+
});
52+
4953
expect(transactionEvent).toEqual(
5054
expect.objectContaining({
5155
spans: expect.arrayContaining([

dev-packages/e2e-tests/test-applications/node-express/tests/transactions.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ test('Sends an API route transaction', async ({ baseURL }) => {
4646
origin: 'auto.http.otel.http',
4747
});
4848

49+
expect(transactionEvent.contexts?.response).toEqual({
50+
status_code: 200,
51+
});
52+
4953
expect(transactionEvent).toEqual(
5054
expect.objectContaining({
5155
transaction: 'GET /test-transaction',

0 commit comments

Comments
 (0)