test(memory): prefer clear over reset in qmd spawn setup
This commit is contained in:
parent
5e9cbdc1a1
commit
45d1096951
@ -118,7 +118,7 @@ describe("QmdMemoryManager", () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
spawnMock.mockReset();
|
||||
spawnMock.mockClear();
|
||||
spawnMock.mockImplementation(() => createMockChild());
|
||||
logWarnMock.mockClear();
|
||||
logDebugMock.mockClear();
|
||||
@ -1666,7 +1666,7 @@ describe("QmdMemoryManager", () => {
|
||||
] as const;
|
||||
|
||||
for (const testCase of cases) {
|
||||
spawnMock.mockReset();
|
||||
spawnMock.mockClear();
|
||||
spawnMock.mockImplementation(() => createMockChild());
|
||||
const { manager } = await createManager();
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user