mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
CLI: fix rebased gateway update tests
This commit is contained in:
@@ -458,13 +458,13 @@ describe("update-cli", () => {
|
||||
});
|
||||
|
||||
it("respawns into the updated package root before running post-update tasks", async () => {
|
||||
const { entryPath } = setupUpdatedRootRefresh();
|
||||
const { entrypoints } = setupUpdatedRootRefresh();
|
||||
|
||||
await updateCommand({ yes: true });
|
||||
|
||||
expect(spawn).toHaveBeenCalledWith(
|
||||
expect.stringMatching(/node/),
|
||||
[entryPath, "update", "--yes"],
|
||||
[entrypoints[0], "update", "--yes"],
|
||||
expect.objectContaining({
|
||||
stdio: "inherit",
|
||||
env: expect.objectContaining({
|
||||
|
||||
@@ -44,6 +44,7 @@ import { runCommandWithTimeout } from "../../process/exec.js";
|
||||
import { defaultRuntime } from "../../runtime.js";
|
||||
import { stylePromptMessage } from "../../terminal/prompt-style.js";
|
||||
import { theme } from "../../terminal/theme.js";
|
||||
import { pathExists } from "../../utils.js";
|
||||
import { replaceCliName, resolveCliName } from "../cli-name.js";
|
||||
import { formatCliCommand } from "../command-format.js";
|
||||
import { installCompletion } from "../completion-runtime.js";
|
||||
|
||||
Reference in New Issue
Block a user