test(ui): narrow vite resolve hook in config test · openclaw/openclaw@ed74fa6
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,9 @@ describe("Control UI Vite config", () => {
|
55 | 55 | it("uses a browser-safe redactor for shared tool display imports", async () => { |
56 | 56 | const plugin = controlUiBrowserOnlySharedModuleAliases(); |
57 | 57 | const resolveId = plugin.resolveId; |
58 | | -expect(typeof resolveId).toBe("function"); |
| 58 | +if (typeof resolveId !== "function") { |
| 59 | +throw new Error("Expected browser-only shared module alias plugin to expose resolveId"); |
| 60 | +} |
59 | 61 | |
60 | 62 | const resolved = await resolveId.call( |
61 | 63 | {} as never, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。