mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 07:40:23 +00:00
test(core): reduce mock reset overhead across unit and e2e specs
This commit is contained in:
@@ -42,7 +42,7 @@ describe("memory search async sync", () => {
|
||||
}) as OpenClawConfig;
|
||||
|
||||
beforeEach(async () => {
|
||||
embedBatch.mockReset();
|
||||
embedBatch.mockClear();
|
||||
embedBatch.mockImplementation(async (input: string[]) => input.map(() => [0.2, 0.2, 0.2]));
|
||||
workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-mem-async-"));
|
||||
indexPath = path.join(workspaceDir, "index.sqlite");
|
||||
|
||||
Reference in New Issue
Block a user