test(sync): make the POST /api/sync route tests independent of their order #153

Merged
maximus merged 1 commit from issue-148-route-tests-order into master 2026-10-25 01:21:49 +00:00

1 commit

Author SHA1 Message Date
le king fu
eff750c5a1 test(sync): make the POST /api/sync route tests independent of their order
Each route test now seeds two fresh accounts (user-<uuid>) through seed(),
with the rows the old beforeAll gave account A and the initialMerge batch
the first test gave account B. beforeAll only runs the migrations. Vitest
shuffles every run (sequence.shuffle) and prints its seed; REVIEW.md
documents the replay command and the new review trap.

Resolves #148

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:51:07 -04:00