mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix(test): mock runDaemonInstall with vi.mocked
This commit is contained in:
@@ -281,7 +281,7 @@ describe("update-cli", () => {
|
||||
serviceLoaded.mockResolvedValue(false);
|
||||
prepareRestartScript.mockResolvedValue("/tmp/openclaw-restart-test.sh");
|
||||
runRestartScript.mockResolvedValue(undefined);
|
||||
runDaemonInstall.mockResolvedValue(undefined);
|
||||
vi.mocked(runDaemonInstall).mockResolvedValue(undefined);
|
||||
setTty(false);
|
||||
setStdoutTty(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user