feat: Windows RAM profiles

This commit is contained in:
zhom committed 2026-10-19 05:38:20 +04:00
1 parent f493c9ef7c
commit 58b0febe42
29 files changed
+3087 -109

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ export const commandCoverage = {
"profile_totp::add_profile_totp",
"profile_totp::delete_profile_totp",
"profile_totp::get_profile_totp_codes",
"ephemeral_dirs::get_ephemeral_storage_status",
"rename_profile",
"detect_existing_profiles",
"import_browser_profiles",
+11
View File
@@ -1522,6 +1522,17 @@ test("a storage state file moves cookies and Local Storage into a closed profile
}),
/LOCAL_STORAGE_EPHEMERAL/,
);
const storage = await app.invoke("get_ephemeral_storage_status");
assert.deepEqual(Object.keys(storage).sort(), ["in_memory", "reason"]);
if (process.platform === "win32") {
assert.equal(storage.in_memory, storage.reason === null);
if (storage.reason !== null) {
assert.match(storage.reason, /^winfsp_(missing|error)$/);
}
} else {
assert.deepEqual(storage, { in_memory: true, reason: null });
}
});
});