test(core): trim redundant test resets and use mockClear

This commit is contained in:
Peter Steinberger
2026-02-22 08:12:55 +00:00
parent e893157600
commit d6d73d0ed9
15 changed files with 14 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ import { stageSandboxMedia } from "./reply/stage-sandbox-media.js";
afterEach(() => {
vi.restoreAllMocks();
childProcessMocks.spawn.mockReset();
childProcessMocks.spawn.mockClear();
});
describe("stageSandboxMedia", () => {

View File

@@ -17,8 +17,6 @@ const { handleInlineActions } = await import("./get-reply-inline-actions.js");
describe("handleInlineActions", () => {
it("skips whatsapp replies when config is empty and From !== To", async () => {
handleCommandsMock.mockReset();
const typing: TypingController = {
onReplyStart: async () => {},
startTypingLoop: async () => {},