9
9
EntryPropertyFunction ,
10
10
ExportedNextConfig ,
11
11
NextConfigObject ,
12
- SentryWebpackPlugin as SentryWebpackPluginType ,
13
12
SentryWebpackPluginOptions ,
14
13
WebpackConfigObject ,
15
14
} from '../src/config/types' ;
@@ -379,7 +378,7 @@ describe('Sentry webpack plugin config', () => {
379
378
incomingWebpackBuildContext : clientBuildContext ,
380
379
} ) ;
381
380
382
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
381
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
383
382
384
383
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
385
384
{ paths : [ '.next/static/chunks/pages' ] , urlPrefix : '~/_next/static/chunks/pages' } ,
@@ -396,7 +395,7 @@ describe('Sentry webpack plugin config', () => {
396
395
incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigServerless ) ,
397
396
} ) ;
398
397
399
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
398
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
400
399
401
400
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
402
401
{ paths : [ '.next/serverless/' ] , urlPrefix : '~/_next/serverless' } ,
@@ -413,7 +412,7 @@ describe('Sentry webpack plugin config', () => {
413
412
incomingWebpackBuildContext : serverBuildContextWebpack4 ,
414
413
} ) ;
415
414
416
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
415
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
417
416
418
417
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
419
418
{ paths : [ '.next/server/pages/' ] , urlPrefix : '~/_next/server/pages' } ,
@@ -427,7 +426,7 @@ describe('Sentry webpack plugin config', () => {
427
426
incomingWebpackBuildContext : serverBuildContext ,
428
427
} ) ;
429
428
430
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
429
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
431
430
432
431
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
433
432
{ paths : [ '.next/server/pages/' ] , urlPrefix : '~/_next/server/pages' } ,
@@ -449,7 +448,7 @@ describe('Sentry webpack plugin config', () => {
449
448
incomingWebpackBuildContext : getBuildContext ( 'client' , userNextConfigWithBasePath ) ,
450
449
} ) ;
451
450
452
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
451
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
453
452
454
453
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
455
454
{ paths : [ '.next/static/chunks/pages' ] , urlPrefix : '~/city-park/_next/static/chunks/pages' } ,
@@ -466,7 +465,7 @@ describe('Sentry webpack plugin config', () => {
466
465
incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigServerless ) ,
467
466
} ) ;
468
467
469
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
468
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
470
469
471
470
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
472
471
{ paths : [ '.next/serverless/' ] , urlPrefix : '~/city-park/_next/serverless' } ,
@@ -483,7 +482,7 @@ describe('Sentry webpack plugin config', () => {
483
482
incomingWebpackBuildContext : serverBuildContextWebpack4 ,
484
483
} ) ;
485
484
486
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
485
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
487
486
488
487
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
489
488
{ paths : [ '.next/server/pages/' ] , urlPrefix : '~/city-park/_next/server/pages' } ,
@@ -497,7 +496,7 @@ describe('Sentry webpack plugin config', () => {
497
496
incomingWebpackBuildContext : getBuildContext ( 'server' , userNextConfigWithBasePath ) ,
498
497
} ) ;
499
498
500
- const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPluginType ;
499
+ const sentryWebpackPlugin = finalWebpackConfig . plugins ?. [ 0 ] as SentryWebpackPlugin ;
501
500
502
501
expect ( sentryWebpackPlugin . options ?. include ) . toEqual ( [
503
502
{ paths : [ '.next/server/pages/' ] , urlPrefix : '~/city-park/_next/server/pages' } ,
0 commit comments