From eb62ad72f15e956e4c3a6240d33e452fb4f45cf2 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 13 May 2026 16:46:20 -0300 Subject: [PATCH] fix(test): align auto-update test sync-env path with FASE 1 move FASE 1 moved scripts/sync-env.mjs to scripts/dev/sync-env.mjs. The implementation (src/lib/system/autoUpdate.ts) was updated, but two test assertions still referenced the old path. Updates the regex matchers to the new path. Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/unit/auto-update-runtime.test.ts | 2 +- tests/unit/auto-update.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/auto-update-runtime.test.ts b/tests/unit/auto-update-runtime.test.ts index 1ca8761a0f..5d107c10bd 100644 --- a/tests/unit/auto-update-runtime.test.ts +++ b/tests/unit/auto-update-runtime.test.ts @@ -130,7 +130,7 @@ describe("buildSourceUpdateScript", () => { assert.match(script, /git fetch --tags 'upstream'/); assert.match(script, /git checkout "v3\.2\.6"/); - assert.match(script, /node scripts\/sync-env\.mjs 2>\/dev\/null \|\| true/); + assert.match(script, /node scripts\/dev\/sync-env\.mjs 2>\/dev\/null \|\| true/); assert.match(script, /pm2 restart omniroute --update-env \|\| true/); }); }); diff --git a/tests/unit/auto-update.test.ts b/tests/unit/auto-update.test.ts index 2f4e2b5e57..cbc0a475f4 100644 --- a/tests/unit/auto-update.test.ts +++ b/tests/unit/auto-update.test.ts @@ -254,7 +254,7 @@ test("auto update script builders generate npm, source, and docker-compose scrip const sourceScript = autoUpdate.buildSourceUpdateScript("3.6.0", "upstream"); assert.match(sourceScript, /git fetch --tags 'upstream'/); assert.match(sourceScript, /git stash --include-untracked/); - assert.match(sourceScript, /node scripts\/sync-env\.mjs 2>\/dev\/null \|\| true/); + assert.match(sourceScript, /node scripts\/dev\/sync-env\.mjs 2>\/dev\/null \|\| true/); assert.match(sourceScript, /Successfully updated to v3\.6\.0/); const dockerScript = autoUpdate.buildDockerComposeUpdateScript({