@@ -247,7 +247,6 @@ describe('Next.js code templates', () => {
247247 selfHosted : false ,
248248 sentryUrl : 'https://dont-use-this-url.com' ,
249249 tunnelRoute : true ,
250- reactComponentAnnotation : false ,
251250 } ) ;
252251
253252 expect ( template ) . toMatchInlineSnapshot ( `
@@ -292,7 +291,6 @@ describe('Next.js code templates', () => {
292291 selfHosted : true ,
293292 sentryUrl : 'https://my-sentry.com' ,
294293 tunnelRoute : true ,
295- reactComponentAnnotation : false ,
296294 } ) ;
297295
298296 expect ( template ) . toMatchInlineSnapshot ( `
@@ -338,7 +336,6 @@ describe('Next.js code templates', () => {
338336 selfHosted : false ,
339337 sentryUrl : 'https://dont-use-this-url.com' ,
340338 tunnelRoute : false ,
341- reactComponentAnnotation : false ,
342339 } ) ;
343340
344341 expect ( template ) . toMatchInlineSnapshot ( `
@@ -375,55 +372,5 @@ describe('Next.js code templates', () => {
375372 }"
376373 ` ) ;
377374 } ) ;
378-
379- it ( 'adds `reactComponentAnnotations` option if `reactComponentAnnotations` is enabled' , ( ) => {
380- const template = getWithSentryConfigOptionsTemplate ( {
381- orgSlug : 'my-org' ,
382- projectSlug : 'my-project' ,
383- selfHosted : false ,
384- sentryUrl : 'https://dont-use-this-url.com' ,
385- tunnelRoute : true ,
386- reactComponentAnnotation : true ,
387- } ) ;
388-
389- expect ( template ) . toMatchInlineSnapshot ( `
390- "{
391- // For all available options, see:
392- // https://www.npmjs.com/package/@sentry/webpack-plugin#options
393-
394- org: "my-org",
395- project: "my-project",
396-
397- // Only print logs for uploading source maps in CI
398- silent: !process.env.CI,
399-
400- // For all available options, see:
401- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
402-
403- // Upload a larger set of source maps for prettier stack traces (increases build time)
404- widenClientFileUpload: true,
405-
406- // Automatically annotate React components to show their full name in breadcrumbs and session replay
407- reactComponentAnnotation: {
408- enabled: true,
409- },
410-
411- // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
412- // This can increase your server load as well as your hosting bill.
413- // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
414- // side errors will fail.
415- tunnelRoute: "/monitoring",
416-
417- // Automatically tree-shake Sentry logger statements to reduce bundle size
418- disableLogger: true,
419-
420- // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
421- // See the following for more information:
422- // https://docs.sentry.io/product/crons/
423- // https://vercel.com/docs/cron-jobs
424- automaticVercelMonitors: true,
425- }"
426- ` ) ;
427- } ) ;
428375 } ) ;
429376} ) ;
0 commit comments