mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 17:20:21 +00:00
test: trim more command partial mocks
This commit is contained in:
@@ -23,8 +23,8 @@ const runMessageAction = vi.hoisted(() =>
|
||||
})),
|
||||
);
|
||||
|
||||
vi.mock("../config/config.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("../config/config.js")>();
|
||||
vi.mock("../config/config.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("../config/config.js")>("../config/config.js");
|
||||
return {
|
||||
...actual,
|
||||
loadConfig: () => testConfig,
|
||||
|
||||
Reference in New Issue
Block a user