Skip to content

Commit 2567277

Browse files
committed
fix up bundle analysis type error in test
1 parent 8413c38 commit 2567277

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/bundler-plugin-core/src/bundle-analysis/__tests__/bundleAnalysisPluginFactory.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1+
import { type UnpluginContextMeta } from "unplugin";
12
import { bundleAnalysisPluginFactory } from "../bundleAnalysisPluginFactory";
23

34
describe("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();

0 commit comments

Comments
 (0)