Matrix: fix typecheck and boundary drift

This commit is contained in:
Gustavo Madeira Santana
2026-03-19 07:59:01 -04:00
parent c4a4050ce4
commit f69450b170
24 changed files with 170 additions and 95 deletions

View File

@@ -521,7 +521,9 @@ describe("matrix CLI verification commands", () => {
expect(matrixRuntimeWriteConfigFileMock).toHaveBeenCalled();
expect(process.exitCode).toBeUndefined();
const jsonOutput = console.log.mock.calls.at(-1)?.[0];
const jsonOutput = (console.log as unknown as { mock: { calls: unknown[][] } }).mock.calls.at(
-1,
)?.[0];
expect(typeof jsonOutput).toBe("string");
expect(JSON.parse(String(jsonOutput))).toEqual(
expect.objectContaining({