Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

test(cli): build the expected db path with join in the status test

mujeebmasi4f84d40db40b
diff --git a/crates/screenpipe-engine/src/cli/status.rs b/crates/screenpipe-engine/src/cli/status.rs
index 8a10f559a..9f73d2424 100644
--- a/crates/screenpipe-engine/src/cli/status.rs
+++ b/crates/screenpipe-engine/src/cli/status.rs
@@ -762,9 +762,10 @@ mod tests {
assert_eq!(payload["database_counts_available"], true);
assert_eq!(payload["last_capture"], "2026-08-21T16:59:57Z");
assert_eq!(payload["last_audio_capture"], "2026-08-21T16:59:28Z");
+ let expected_db_path = PathBuf::from("/Users/test/.screenpipe").join("db.sqlite");
assert_eq!(
payload["database_path"],
- "/Users/test/.screenpipe/db.sqlite"
+ expected_db_path.to_string_lossy().as_ref()
);
assert_eq!(payload["health"]["status"], "healthy");
}