chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -27,9 +27,7 @@ vi.mock("../runtime.js", () => ({
describe("update-cli", () => {
it("exports updateCommand and registerUpdateCli", async () => {
const { updateCommand, registerUpdateCli } = await import(
"./update-cli.js"
);
const { updateCommand, registerUpdateCli } = await import("./update-cli.js");
expect(typeof updateCommand).toBe("function");
expect(typeof registerUpdateCli).toBe("function");
}, 20_000);
@@ -154,12 +152,8 @@ describe("update-cli", () => {
await updateCommand({ restart: true });
const logLines = vi
.mocked(defaultRuntime.log)
.mock.calls.map((call) => String(call[0]));
expect(
logLines.some((line) => line.includes("Daemon restarted successfully.")),
).toBe(false);
const logLines = vi.mocked(defaultRuntime.log).mock.calls.map((call) => String(call[0]));
expect(logLines.some((line) => line.includes("Daemon restarted successfully."))).toBe(false);
});
it("updateCommand validates timeout option", async () => {
@@ -171,9 +165,7 @@ describe("update-cli", () => {
await updateCommand({ timeout: "invalid" });
expect(defaultRuntime.error).toHaveBeenCalledWith(
expect.stringContaining("timeout"),
);
expect(defaultRuntime.error).toHaveBeenCalledWith(expect.stringContaining("timeout"));
expect(defaultRuntime.exit).toHaveBeenCalledWith(1);
});
});