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" ;
1
2
import { bundleAnalysisPluginFactory } from "../bundleAnalysisPluginFactory" ;
2
3
3
4
describe ( "bundleAnalysisPluginFactory" , ( ) => {
4
5
it ( "returns a plugin functions" , ( ) => {
5
6
const plugin = bundleAnalysisPluginFactory ( {
6
- userOptions : { bundleName : "test" } ,
7
+ userOptions : {
8
+ bundleName : "test" ,
9
+ telemetry : false ,
10
+ dryRun : false ,
11
+ apiUrl : "cool-url" ,
12
+ } ,
7
13
bundleAnalysisUploadPlugin : ( ) => ( {
8
14
version : "1" ,
9
15
name : "plugin-name" ,
10
16
pluginVersion : "1.0.0" ,
11
17
} ) ,
18
+ unpluginMetaContext : { } as UnpluginContextMeta ,
19
+ sentryClient : undefined ,
20
+ handleRecoverableError ( ) {
21
+ return ;
22
+ } ,
12
23
} ) ;
13
24
14
25
expect ( plugin ) . toMatchSnapshot ( ) ;
You can’t perform that action at this time.
0 commit comments