chore: format swift/ts and fix gateway lint
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
vi.mock("node:child_process", async () => {
|
||||
const actual = await vi.importActual<typeof import("node:child_process")>(
|
||||
"node:child_process",
|
||||
);
|
||||
const actual =
|
||||
await vi.importActual<typeof import("node:child_process")>(
|
||||
"node:child_process",
|
||||
);
|
||||
return {
|
||||
...actual,
|
||||
execFileSync: vi.fn(),
|
||||
@@ -14,8 +15,8 @@ import { execFileSync } from "node:child_process";
|
||||
import {
|
||||
forceFreePort,
|
||||
listPortListeners,
|
||||
parseLsofOutput,
|
||||
type PortProcess,
|
||||
parseLsofOutput,
|
||||
} from "./program.js";
|
||||
|
||||
describe("gateway --force helpers", () => {
|
||||
|
||||
@@ -116,10 +116,7 @@ export function buildProgram() {
|
||||
'clawdis send --to +15555550123 --message "Hi" --json',
|
||||
"Send via your web session and print JSON result.",
|
||||
],
|
||||
[
|
||||
"clawdis gateway --port 18789",
|
||||
"Run the WebSocket Gateway locally.",
|
||||
],
|
||||
["clawdis gateway --port 18789", "Run the WebSocket Gateway locally."],
|
||||
[
|
||||
"clawdis gateway --force",
|
||||
"Kill anything bound to the default gateway port, then start it.",
|
||||
|
||||
Reference in New Issue
Block a user