metallkart-erp/tests
louis 31a473857b fix(advisor-digest): correct sender + weekly cron + idempotence (ADVISOR-DIGEST-FIX-S109)
- Switch sender from purchase@ to erp-bot@ (via SMTP_FROM env var + per-call from override)
- Remove setTimeout(run, 60_000) boot trigger (root cause of multi-send on restart)
- Add SystemJob Prisma model for idempotent recurring job tracking (6-day min interval)
- New env flag ADVISOR_DIGEST_ENABLED (default true)
- E2E seed: system_jobs added to truncation list
- +5 new Vitest (sender, env disable, DB disable, idempotence, happy path), 7 total

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-19 15:56:55 +04:00
..
backend feat(e2e): set up isolated Playwright infra + 10 smoke tests (PLAYWRIGHT-P0) 2026-05-11 18:26:33 +03:00
e2e fix(advisor-digest): correct sender + weekly cron + idempotence (ADVISOR-DIGEST-FIX-S109) 2026-05-19 15:56:55 +04:00