Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

test(backup): configure retention for multiple archive integration coverage

tianma-ifa293d7e1a088
diff --git a/apps/desktop/src/backup/worker-integration.test.mjs b/apps/desktop/src/backup/worker-integration.test.mjs
index 2a3d7751..2fc741d0 100644
--- a/apps/desktop/src/backup/worker-integration.test.mjs
+++ b/apps/desktop/src/backup/worker-integration.test.mjs
@@ -209,6 +209,7 @@ test("manager creates named files, restores from history and deletes only the se
});
cleanups.push(() => manager.close());
await manager.setContext({ baseUrl: source.baseUrl, accountId: "local", token: "" });
+ await manager.save({ ...manager.status().config, retention: 3 });
const id = manager.status().backupSetId;
for (const encrypted of [false, true]) {
await manager.run(encrypted ? "fixture password" : undefined, id, undefined, { name: encrypted ? "Encrypted snapshot.zip" : "Plain snapshot", encrypted });