mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:21:23 +00:00
Tests: fix discord components loadConfig mock
This commit is contained in:
@@ -10,7 +10,7 @@ vi.mock("../config/config.js", async () => {
|
|||||||
const actual = await vi.importActual<typeof import("../config/config.js")>("../config/config.js");
|
const actual = await vi.importActual<typeof import("../config/config.js")>("../config/config.js");
|
||||||
return {
|
return {
|
||||||
...actual,
|
...actual,
|
||||||
loadConfig: (...args: unknown[]) => loadConfigMock(...args),
|
loadConfig: () => loadConfigMock(),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user