mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 02:22:25 +00:00
test(core): trim redundant test resets and use mockClear
This commit is contained in:
@@ -25,7 +25,7 @@ describe("killProcessTree", () => {
|
||||
let killSpy: ReturnType<typeof vi.spyOn>;
|
||||
|
||||
beforeEach(() => {
|
||||
spawnMock.mockReset();
|
||||
spawnMock.mockClear();
|
||||
killSpy = vi.spyOn(process, "kill");
|
||||
vi.useFakeTimers();
|
||||
});
|
||||
|
||||
@@ -40,7 +40,7 @@ describe("process supervisor PTY command contract", () => {
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
createPtyAdapterMock.mockReset();
|
||||
createPtyAdapterMock.mockClear();
|
||||
});
|
||||
|
||||
it("passes PTY command verbatim to shell args", async () => {
|
||||
|
||||
Reference in New Issue
Block a user