mirror of
https://github.com/zadam/trilium.git
synced 2026-05-19 12:29:53 +02:00
The prepareMigrations() function called MIGRATIONS.sort() which mutated the module-level exported array. When the test setup ran migrations via beforeAll(), the array was left in ascending order, causing the migrations.spec.ts ordering test to fail. Co-authored-by: Elian Doran <eliandoran@users.noreply.github.com>