Skip to content

Commit 8970a6c

Browse files
committed
test webpack too why not
1 parent af1c8cd commit 8970a6c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ 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+
},
1520
});

dev-packages/e2e-tests/test-applications/nextjs-16/tests/third-party-filter.test.ts

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

44
test('First-party error should not be tagged as third-party code', async ({ page }) => {
5-
// This test only applies to Turbopack builds where the moduleMetadataInjectionLoader is active.
6-
// On webpack builds, the @sentry/webpack-plugin handles metadata injection instead.
7-
// We run the test for all environments since the integration is always configured,
8-
// but the assertion is meaningful primarily for Turbopack (development mode default).
95

106
const errorPromise = waitForError('nextjs-16', errorEvent => {
117
return errorEvent?.exception?.values?.some(value => value.value === 'first-party-error') ?? false;

0 commit comments

Comments
 (0)