CLI: fix rebased gateway update tests

This commit is contained in:
mbelinky
2026-04-13 17:03:15 +02:00
parent 39b7570e28
commit 31cbc3349c
2 changed files with 3 additions and 2 deletions

View File

@@ -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({

View File

@@ -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";