Skip to content

Commit b58cf70

Browse files
author
Luca Forstner
committed
Undo version check
1 parent ae913ff commit b58cf70

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/client-errors.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

4-
const packageJson = require('../package.json');
5-
64
test('Sends a client-side exception to Sentry', async ({ page }) => {
7-
const nextjsVersion = packageJson.dependencies.next;
8-
const nextjsMajor = Number(nextjsVersion.split('.')[0]);
9-
105
await page.goto('/');
116

127
const errorEventPromise = waitForError('nextjs-app-dir', errorEvent => {
@@ -28,8 +23,6 @@ test('Sends a client-side exception to Sentry', async ({ page }) => {
2823
expect(errorEvent.transaction).toEqual('/');
2924

3025
expect(errorEvent.contexts?.trace).toEqual({
31-
// Next.js >= 15 propagates a trace ID to the client via a meta tag.
32-
parent_span_id: nextjsMajor >= 15 ? expect.any(String) : undefined,
3326
trace_id: expect.any(String),
3427
span_id: expect.any(String),
3528
});

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/transactions.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { waitForTransaction } from '@sentry-internal/test-utils';
44
const packageJson = require('../package.json');
55

66
test('Sends a pageload transaction', async ({ page }) => {
7-
const nextjsVersion = packageJson.dependencies.next;
8-
const nextjsMajor = Number(nextjsVersion.split('.')[0]);
9-
107
const pageloadTransactionEventPromise = waitForTransaction('nextjs-app-dir', transactionEvent => {
118
return transactionEvent?.contexts?.trace?.op === 'pageload' && transactionEvent?.transaction === '/';
129
});
@@ -26,8 +23,6 @@ test('Sends a pageload transaction', async ({ page }) => {
2623
version: expect.any(String),
2724
},
2825
trace: {
29-
// Next.js >= 15 propagates a trace ID to the client via a meta tag.
30-
parent_span_id: nextjsMajor >= 15 ? expect.any(String) : undefined,
3126
span_id: expect.any(String),
3227
trace_id: expect.any(String),
3328
op: 'pageload',

0 commit comments

Comments
 (0)