test(ui): narrow vite resolve hook in config test

This commit is contained in:
Peter Steinberger
2026-05-31 16:42:09 +01:00
parent 210adf1d11
commit ed74fa692b

View File

@@ -55,7 +55,9 @@ describe("Control UI Vite config", () => {
it("uses a browser-safe redactor for shared tool display imports", async () => {
const plugin = controlUiBrowserOnlySharedModuleAliases();
const resolveId = plugin.resolveId;
expect(typeof resolveId).toBe("function");
if (typeof resolveId !== "function") {
throw new Error("Expected browser-only shared module alias plugin to expose resolveId");
}
const resolved = await resolveId.call(
{} as never,