Skip to content

Commit 4de658f

Browse files
committed
test for logs
1 parent 547ce6a commit 4de658f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/nextjs/test/config/withSentryConfig.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ describe('withSentryConfig', () => {
457457
const cleanConfig = { ...exportedNextConfig };
458458
delete cleanConfig.productionBrowserSourceMaps;
459459

460-
materializeFinalNextConfig(cleanConfig);
460+
const sentryOptions = {
461+
debug: true,
462+
};
463+
464+
materializeFinalNextConfig(cleanConfig, undefined, sentryOptions);
461465

462466
expect(consoleSpy).toHaveBeenCalledWith(
463467
'[@sentry/nextjs] Automatically enabling browser source map generation for turbopack build.',
@@ -476,6 +480,7 @@ describe('withSentryConfig', () => {
476480
delete cleanConfig.productionBrowserSourceMaps;
477481

478482
const sentryOptions = {
483+
debug: true,
479484
sourcemaps: {}, // triggers automatic deletion
480485
};
481486

0 commit comments

Comments
 (0)