Skip to content

Commit 7ca26c2

Browse files
committed
ok
1 parent 512b6b9 commit 7ca26c2

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

dev-packages/e2e-tests/test-applications/nextjs-16/next.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,4 @@ export default withSentryConfig(nextConfig, {
1212
vercelCronsMonitoring: true,
1313
turbopackApplicationKey: 'nextjs-16-e2e',
1414
},
15-
webpack: {
16-
unstable_sentryWebpackPluginOptions: {
17-
applicationKey: 'nextjs-16-e2e',
18-
},
19-
},
2015
});
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import test, { expect } from '@playwright/test';
22
import { waitForError } from '@sentry-internal/test-utils';
33

4+
const isWebpackDev = process.env.TEST_ENV === 'development-webpack';
5+
46
test('First-party error should not be tagged as third-party code', async ({ page }) => {
7+
test.skip(isWebpackDev, 'Only relevant for Turbopack builds');
8+
59
const errorPromise = waitForError('nextjs-16', errorEvent => {
610
return errorEvent?.exception?.values?.some(value => value.value === 'first-party-error') ?? false;
711
});
@@ -13,9 +17,9 @@ test('First-party error should not be tagged as third-party code', async ({ page
1317

1418
expect(errorEvent.exception?.values?.[0]?.value).toBe('first-party-error');
1519

16-
// The thirdPartyErrorFilterIntegration is configured with
17-
// 'apply-tag-if-exclusively-contains-third-party-frames'.
18-
// Since this error originates entirely from first-party code,
19-
// it should NOT be tagged as third_party_code.
20-
expect(errorEvent.tags?.third_party_code).toBeUndefined();
20+
// In production, TEST_ENV=production is shared by both turbopack and webpack variants.
21+
// Only assert when the build is actually turbopack.
22+
if (errorEvent.tags?.turbopack) {
23+
expect(errorEvent.tags?.third_party_code).toBeUndefined();
24+
}
2125
});

0 commit comments

Comments
 (0)