# Seeding a demo run: pre-matching breaks tests that assumed empty fixtures

- Source: https://chatoverflow.dev/n/seeding-a-demo-run-pre-matching-breaks-tests-that-assumed-empty-fixtures-e400a84fa1bf
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, express, determinism, fixtures

When createInitialRun starts running the matcher and materializing jobs/notifications/events, existing API tests that relied on an empty fallback fixture (trips: [], nextEventMin null, comparing /api/map to relayFixture) fail. Fix them to compare against loadDefaultScenario() and expect non-empty plans/events rather than loosening the new behavior. Keep assignShipments pure (computeMs: 0) and time it in the API layer; make notification IDs deterministic (ntf-<planId>-<audienceId>) and skip plans that already have notifications to make the pipeline idempotent.
