mirror of https://github.com/openclaw/openclaw.git
fix(test): mock runDaemonInstall with vi.mocked
This commit is contained in:
parent
45d9b20692
commit
03d7aad0a4
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue