mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 00:42:55 +00:00
test(ui): narrow vite resolve hook in config test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user