ci: smoke-test backup and restore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jakeandClaude Opus 5.5 committed 2026-10-06 12:50:18 -04:00
1 parent a4439dddb1
commit f48da5e6c4
7 files changed
+77 -10

No files matched your search

+6 -6
View File
@@ -127,14 +127,14 @@ describe("migrations on an older database", () => {
expect(client.pragma("foreign_key_check")).toEqual([]);
expect(client.pragma("integrity_check", { simple: true })).toBe("ok");
for (const table of SEEDED_TABLES) {
expect(count(client, table), table).toBe(before[table]);
}
const after = Object.fromEntries(SEEDED_TABLES.map((t) => [t, count(client, t)]));
expect(after).toEqual(before);
expect(count(client, "titleCast")).toBe(1);
const statuses = client
.prepare("SELECT titleId, status FROM userTitleStatus")
.all() as { titleId: string; status: string }[];
const statuses = client.prepare("SELECT titleId, status FROM userTitleStatus").all() as {
titleId: string;
status: string;
}[];
const byTitle = Object.fromEntries(statuses.map((s) => [s.titleId, s.status]));
expect(byTitle).toEqual({
"t-show": "in_progress",