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

@@ -25,7 +25,7 @@ describe("killProcessTree", () => {
let killSpy: ReturnType<typeof vi.spyOn>;
beforeEach(() => {
spawnMock.mockReset();
spawnMock.mockClear();
killSpy = vi.spyOn(process, "kill");
vi.useFakeTimers();
});

View File

@@ -40,7 +40,7 @@ describe("process supervisor PTY command contract", () => {
});
beforeEach(() => {
createPtyAdapterMock.mockReset();
createPtyAdapterMock.mockClear();
});
it("passes PTY command verbatim to shell args", async () => {