test(api): Activities — fill gaps + lifecycle test

This commit is contained in:
Bas van Rossem
2026-07-22 12:01:03 +02:00
parent e6e4ca0a1e
commit af7251398c
4 changed files with 233 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ function toActivity(row: ActivityRow): Activity {
name: row.name,
insole_types: row.insoleTypes as Activity['insole_types'],
created_at: new Date(row.createdAt).toISOString(),
/* c8 ignore next -- sort_order is NOT NULL DEFAULT 0; the ?? fallback is unreachable */
sort_order: row.sortOrder ?? 0,
};
}