Skip to content

Commit 0aaf3a4

Browse files
committed
Fix build
1 parent 0ddf6ae commit 0aaf3a4

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

packages/bundler-plugin-core/test/build-plugin-manager.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
import fs from "fs";
66
import { glob } from "glob";
77
import { prepareBundleForDebugIdUpload } from "../src/debug-id-upload";
8-
import { describe, it, expect, afterEach, beforeEach, vi } from "vitest";
8+
import { describe, it, expect, afterEach, beforeEach, vi, MockedFunction } from "vitest";
99

1010
const { mockCliExecute, mockCliUploadSourceMaps, mockCliNewDeploy } = vi.hoisted(() => ({
1111
mockCliExecute: vi.fn(),
@@ -39,11 +39,9 @@ vi.mock("@sentry/core", async () => ({
3939
vi.mock("glob");
4040
vi.mock("../src/debug-id-upload");
4141

42-
const mockGlob = glob as unknown as vi.MockedFunction<typeof glob>;
42+
const mockGlob = glob as unknown as MockedFunction<typeof glob>;
4343
const mockPrepareBundleForDebugIdUpload =
44-
prepareBundleForDebugIdUpload as unknown as vi.MockedFunction<
45-
typeof prepareBundleForDebugIdUpload
46-
>;
44+
prepareBundleForDebugIdUpload as unknown as MockedFunction<typeof prepareBundleForDebugIdUpload>;
4745

4846
describe("createSentryBuildPluginManager", () => {
4947
beforeEach(() => {

packages/e2e-tests/utils/create-cjs-bundles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function createCjsBundles(
4343
sentryPluginOptions.release.uploadLegacySourcemaps as string
4444
}/vite`,
4545
},
46-
}),
46+
}) as unknown as vite.Plugin,
4747
],
4848
});
4949

packages/integration-tests/fixtures/deterministic-debug-ids/build-vite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ void vite.build({
1717
},
1818
},
1919
},
20-
plugins: [sentryVitePlugin(pluginOptions)],
20+
plugins: [sentryVitePlugin(pluginOptions) as unknown as vite.Plugin],
2121
});

packages/integration-tests/fixtures/errorhandling/build-vite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vite
1818
},
1919
},
2020
},
21-
plugins: [sentryVitePlugin(pluginOptions)],
21+
plugins: [sentryVitePlugin(pluginOptions) as unknown as vite.Plugin],
2222
})
2323
.catch((e) => {
2424
// eslint-disable-next-line no-console

packages/integration-tests/fixtures/vite-mpa-extra-modules/build-vite-with-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ void vite.build({
2323
sentryVitePlugin({
2424
telemetry: false,
2525
// Empty options - the issue says options don't affect the results
26-
}),
26+
}) as unknown as vite.Plugin,
2727
],
2828
});

packages/integration-tests/utils/create-cjs-bundles-for-react.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export function createCjsBundles(
3838
},
3939
},
4040
},
41-
plugins: [react({ jsxRuntime: "automatic" }), sentryVitePlugin(sentryPluginOptions)],
41+
plugins: [
42+
react({ jsxRuntime: "automatic" }),
43+
sentryVitePlugin(sentryPluginOptions) as unknown as vite.Plugin,
44+
],
4245
});
4346
}
4447
if (plugins.length === 0 || plugins.includes("rollup")) {

packages/integration-tests/utils/create-cjs-bundles-with-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function createCjsBundlesWithQueryParam(
3131
},
3232
},
3333
},
34-
plugins: [sentryVitePlugin(sentryPluginOptions)],
34+
plugins: [sentryVitePlugin(sentryPluginOptions) as unknown as vite.Plugin],
3535
});
3636
}
3737
if (plugins.length === 0 || plugins.includes("rollup")) {

packages/integration-tests/utils/create-cjs-bundles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function createCjsBundles(
3434
},
3535
},
3636
},
37-
plugins: [sentryVitePlugin(sentryPluginOptions)],
37+
plugins: [sentryVitePlugin(sentryPluginOptions) as unknown as vite.Plugin],
3838
});
3939
}
4040

0 commit comments

Comments
 (0)