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

@@ -91,7 +91,7 @@ describe("ports helpers", () => {
describeUnix("inspectPortUsage", () => {
beforeEach(() => {
runCommandWithTimeoutMock.mockReset();
runCommandWithTimeoutMock.mockClear();
});
it("reports busy when lsof is missing but loopback listener exists", async () => {

View File

@@ -17,7 +17,7 @@ afterEach(() => {
envSnapshot.restore();
process.argv = [...originalArgv];
process.execArgv = [...originalExecArgv];
spawnMock.mockReset();
spawnMock.mockClear();
});
function clearSupervisorHints() {