test(cli): avoid update-cli import timeout
This commit is contained in:
@@ -22,13 +22,17 @@ vi.mock("../runtime.js", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
describe("update-cli", () => {
|
describe("update-cli", () => {
|
||||||
it("exports updateCommand and registerUpdateCli", async () => {
|
it(
|
||||||
|
"exports updateCommand and registerUpdateCli",
|
||||||
|
async () => {
|
||||||
const { updateCommand, registerUpdateCli } = await import(
|
const { updateCommand, registerUpdateCli } = await import(
|
||||||
"./update-cli.js"
|
"./update-cli.js"
|
||||||
);
|
);
|
||||||
expect(typeof updateCommand).toBe("function");
|
expect(typeof updateCommand).toBe("function");
|
||||||
expect(typeof registerUpdateCli).toBe("function");
|
expect(typeof registerUpdateCli).toBe("function");
|
||||||
});
|
},
|
||||||
|
20_000,
|
||||||
|
);
|
||||||
|
|
||||||
it("updateCommand runs update and outputs result", async () => {
|
it("updateCommand runs update and outputs result", async () => {
|
||||||
const { runGatewayUpdate } = await import("../infra/update-runner.js");
|
const { runGatewayUpdate } = await import("../infra/update-runner.js");
|
||||||
|
|||||||
Reference in New Issue
Block a user