File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
15
15
} from '../src/config/types' ;
16
16
import {
17
17
constructWebpackConfigFunction ,
18
+ findWebpackPlugin ,
18
19
getUserConfigFile ,
19
20
getWebpackPluginOptions ,
20
21
SentryWebpackPlugin ,
@@ -335,8 +336,12 @@ describe('Sentry webpack plugin config', () => {
335
336
incomingWebpackConfig : serverWebpackConfig ,
336
337
incomingWebpackBuildContext : serverBuildContext ,
337
338
} ) ;
339
+ const sentryWebpackPluginInstance = findWebpackPlugin (
340
+ finalWebpackConfig ,
341
+ 'SentryCliPlugin' ,
342
+ ) as SentryWebpackPluginType ;
338
343
339
- expect ( finalWebpackConfig . plugins ?. [ 0 ] . options ) . toEqual (
344
+ expect ( sentryWebpackPluginInstance . options ) . toEqual (
340
345
expect . objectContaining ( {
341
346
include : expect . any ( Array ) , // default, tested separately elsewhere
342
347
ignore : [ ] , // default
You can’t perform that action at this time.
0 commit comments