chore: Fix types in tests 10/N.

This commit is contained in:
cpojer
2026-02-17 11:17:14 +09:00
parent 95f344e433
commit 058eb85762
5 changed files with 35 additions and 19 deletions

View File

@@ -245,7 +245,7 @@ describe("channels command", () => {
});
await channelsListCommand({ json: true, usage: false }, runtime);
const payload = JSON.parse(String(runtime.log.mock.calls[0]?.[0] ?? "{}")) as {
const payload = JSON.parse(runtime.log.mock.calls[0]?.[0] as string) as {
auth?: Array<{ id: string }>;
};
const ids = payload.auth?.map((entry) => entry.id) ?? [];