feat: add unit tests for replicateResultProcessor and refactor replicator logging

- Introduced unit tests for the replicateResultProcessor, covering various scenarios including document enqueuing, snapshot handling, and processing of non-document changes.
- Refactored replicator to utilize a logging function from the host API instead of a global logger, enhancing log management.
- Updated mismatchedTweaksResolver to include logging through the host API, ensuring consistent logging practices across the application.
- Adjusted tests to mock the new logging behavior and verify log outputs.
This commit is contained in:
vorotamoroz
2026-06-26 09:36:48 +00:00
parent f954448ef8
commit 559c3f351b
86 changed files with 2569 additions and 2009 deletions
@@ -85,7 +85,7 @@ export function scheduleAppReload(host: ObsidianEventsHost, log: LogFunction, st
);
});
const plugin = (host as any).plugin;
const plugin = host.context.plugin;
const intervalId = compatGlobal.setInterval(() => {
tick.value++;
}, 1000);