diff --git a/src/cli/update-cli.test.ts b/src/cli/update-cli.test.ts index 1e48dc76109..3f160bcd8e2 100644 --- a/src/cli/update-cli.test.ts +++ b/src/cli/update-cli.test.ts @@ -1036,6 +1036,7 @@ describe("update-cli", () => { expect(completionCacheSpy).not.toHaveBeenCalled(); expect(runRestartScript).not.toHaveBeenCalled(); expect(runDaemonRestart).not.toHaveBeenCalled(); + expect(defaultRuntime.exit).toHaveBeenCalledWith(0); expect(defaultRuntime.exit).not.toHaveBeenCalledWith(1); expect( vi diff --git a/src/cli/update-cli/update-command.ts b/src/cli/update-cli/update-command.ts index 8770b96ef5d..6e172a555d9 100644 --- a/src/cli/update-cli/update-command.ts +++ b/src/cli/update-cli/update-command.ts @@ -1046,6 +1046,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise { ), ); } + defaultRuntime.exit(0); return; }