Friday, May 29, 2026

Add server-side tests for the new spam-complaint signals

Volleyball Elite Academy development update
Volleyball Elite Academy
Add server-side tests for the new spam-complaint signals

Add server-side tests for the new spam-complaint signals

Volleyball Elite Academy — Development Update • May 29, 2026

--- title: Add automated tests covering the new spam-complaint signals on SOF send and remind endpoints ---

Add server-side tests for the new spam-complaint signals

## What & Why Task #622 added to four email helpers and surfaced / / on /send-homework, /send-summary, /remind, and /remind-bulk. The frontend toast wording is unit-tested via , but there's no server-side coverage that the routes actually populate these fields when Resend reports a previous complaint. A regression here would be invisible — the wire payload would just lose the field and the UI would silently fall back to its old behaviour.

## Done looks like - Tests assert /send-homework and /send-summary set correctly when one or more recipients are suppressed for prior complaint - Tests assert /remind returns and /remind-bulk's summary returns and per-row - Mocks for the email helper return both values to exercise the "preference_off" vs "previous_complaint" branches

## Relevant files - -

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