test(channels): use lightweight clears in probe and reaction setup

This commit is contained in:
Peter Steinberger
2026-02-22 00:23:44 +00:00
parent f28fcf243a
commit 14d6b3741c
3 changed files with 5 additions and 5 deletions

View File

@@ -18,15 +18,15 @@ vi.mock("./client.js", () => ({
}));
beforeEach(() => {
detectBinaryMock.mockReset().mockResolvedValue(true);
runCommandWithTimeoutMock.mockReset().mockResolvedValue({
detectBinaryMock.mockClear().mockResolvedValue(true);
runCommandWithTimeoutMock.mockClear().mockResolvedValue({
stdout: "",
stderr: 'unknown command "rpc" for "imsg"',
code: 1,
signal: null,
killed: false,
});
createIMessageRpcClientMock.mockReset();
createIMessageRpcClientMock.mockClear();
});
describe("probeIMessage", () => {