From ee1a198f1d6890a9e2d7c1da2c0cc48774783c81 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 11 Dec 2023 09:38:05 +0100 Subject: [PATCH] Add test comments --- packages/server/src/appMigrations/tests/migrations.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/appMigrations/tests/migrations.spec.ts b/packages/server/src/appMigrations/tests/migrations.spec.ts index b761837dd4..9d80cc5f99 100644 --- a/packages/server/src/appMigrations/tests/migrations.spec.ts +++ b/packages/server/src/appMigrations/tests/migrations.spec.ts @@ -3,6 +3,8 @@ import * as setup from "../../api/routes/tests/utilities" import { MIGRATIONS } from "../migrations" describe("migration", () => { + // These test is checking that each migration is "idempotent". + // We should be able to rerun any migration, with any rerun not modifiying anything. The code should be aware that the migration already ran it("each migration can rerun safely", async () => { const config = setup.getConfig() await config.init()