File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/bundler-plugin-core/src/bundle-analysis/__tests__ Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ import { type UnpluginContextMeta } from "unplugin" ;
12import { bundleAnalysisPluginFactory } from "../bundleAnalysisPluginFactory" ;
23
34describe ( "bundleAnalysisPluginFactory" , ( ) => {
45 it ( "returns a plugin functions" , ( ) => {
56 const plugin = bundleAnalysisPluginFactory ( {
6- userOptions : { bundleName : "test" } ,
7+ userOptions : {
8+ bundleName : "test" ,
9+ telemetry : false ,
10+ dryRun : false ,
11+ apiUrl : "cool-url" ,
12+ } ,
713 bundleAnalysisUploadPlugin : ( ) => ( {
814 version : "1" ,
915 name : "plugin-name" ,
1016 pluginVersion : "1.0.0" ,
1117 } ) ,
18+ unpluginMetaContext : { } as UnpluginContextMeta ,
19+ sentryClient : undefined ,
20+ handleRecoverableError ( ) {
21+ return ;
22+ } ,
1223 } ) ;
1324
1425 expect ( plugin ) . toMatchSnapshot ( ) ;
You can’t perform that action at this time.
0 commit comments