Volleyball Elite Academy development update
|
Volleyball Elite Academy
Make sure the 'previous note' lookup keeps working against the real database
|
Make sure the 'previous note' lookup keeps working against the real databaseVolleyball Elite Academy — Development Update • May 27, 2026
--- title: Make sure the 'previous note' lookup keeps working against the real database ---
Make sure the 'previous note' lookup keeps working against the real database
## What & Why The new helper that pulls the most recent acknowledgement note for the daily webhook outage email ( in ) is currently exercised only through the mocked scheduler unit test. The sibling snooze helpers all have real-database coverage in so a column rename or a Drizzle upgrade would be caught for them but not for this new helper. A regression here would silently strip the "Previous acknowledgement" callout from every outage alert and the existing unit test wouldn't notice.
## Done looks like - A new test in (or alongside) seeds rows with notes (some with createdAt newer than others, some with NULL/blank notes, some for a different warningKind) and asserts returns the most recent NON-blank note for the matching warningKind. - The test follows the same fixture-tagging pattern (, far-future cutoff, cleanup by tag) the existing snooze db tests use so it doesn't bleed rows into other suites.
## Relevant files - — the helper under test - — pattern to copy
|
Volleyball Elite Academy Reply to this email — we read every reply. You received this because you have an account with Volleyball Elite Academy. elitevolleyball.training |
|
No comments:
Post a Comment