test(integration): clear the host-wide off-host tables between tests

The purge requests and the off-host key-use ledger are not keyed to a
user, so truncating users never reached them. A file that reads them
whole, the purge job or the encryption status view, saw rows earlier
files had left and failed in a full serial run.
This commit is contained in:
Marc-André Bombeck committed 2026-09-27 00:17:01 +02:00
1 parent f4b9d8a0e1
commit 1bf84149f8
1 file changed
+5
+5
View File
@@ -63,6 +63,11 @@ export async function truncateAllTables(client: PrismaClient): Promise<void> {
"mood_entries",
"notification_channels",
"notification_preferences",
// Host-wide off-host backup state: not keyed to a user, so the users
// cascade does not reach it, and a file that reads it whole (the purge
// job, the encryption view) saw what earlier files left behind.
"offhost_backup_key_use",
"offhost_purge_requests",
"passkeys",
"personal_records",
"push_subscriptions",