test(cli): avoid update-cli import timeout

This commit is contained in:
Peter Steinberger
2026-01-10 23:35:04 +01:00
parent 1eb50ffac4
commit 786eac1d6f

View File

@@ -22,13 +22,17 @@ vi.mock("../runtime.js", () => ({
}));
describe("update-cli", () => {
it("exports updateCommand and registerUpdateCli", async () => {
it(
"exports updateCommand and registerUpdateCli",
async () => {
const { updateCommand, registerUpdateCli } = await import(
"./update-cli.js"
);
expect(typeof updateCommand).toBe("function");
expect(typeof registerUpdateCli).toBe("function");
});
},
20_000,
);
it("updateCommand runs update and outputs result", async () => {
const { runGatewayUpdate } = await import("../infra/update-runner.js");