mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 01:05:42 -04:00
ci: smoke-test backup and restore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
7 files changed
+77
-10
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user