mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 16:20:23 +00:00
refactor(core): dedupe shared config and runtime helpers
This commit is contained in:
13
src/memory/test-runtime-mocks.ts
Normal file
13
src/memory/test-runtime-mocks.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
// Unit tests: avoid importing the real chokidar implementation (native fsevents, etc.).
|
||||
vi.mock("chokidar", () => ({
|
||||
default: {
|
||||
watch: () => ({ on: () => {}, close: async () => {} }),
|
||||
},
|
||||
watch: () => ({ on: () => {}, close: async () => {} }),
|
||||
}));
|
||||
|
||||
vi.mock("./sqlite-vec.js", () => ({
|
||||
loadSqliteVecExtension: async () => ({ ok: false, error: "sqlite-vec disabled in tests" }),
|
||||
}));
|
||||
Reference in New Issue
Block a user