mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-27 00:23:56 +00:00
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:
+1
-1
@@ -16,7 +16,7 @@ try {
|
||||
|
||||
try {
|
||||
console.log("[Postbuild] Type definitions generated successfully. Adding ignore comments...");
|
||||
execSync("Deno run -A ./utilsdeno/types-add-ignore.ts", { stdio: "inherit" });
|
||||
execSync("deno run -A ./utilsdeno/types-add-ignore.ts", { stdio: "inherit" });
|
||||
console.log("[Postbuild] Ignore comments added successfully.");
|
||||
} catch (error) {
|
||||
console.warn("[Postbuild] Failed to add ignore comments to type definitions.");
|
||||
|
||||
Reference in New Issue
Block a user