From d7c4ad178e62442d124b81ffd9ac6b3da01e5573 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:09:04 +0200 Subject: [PATCH] fix(tests): correct import path for git_helper module in updatenotification tests (#4078) This removes a warning which appeared running a test: ```bash $ npx vitest --run tests/unit/functions/updatenotification_spec.js RUN v4.1.2 7:46:46 PM [vite] (ssr) warning: invalid import "../../../${defaults.defaultModulesDir}/updatenotification/git_helper". A file extension must be included in the static part of the import. For example: import(`./foo/${bar}.js`). ``` Related to #4073 --- tests/unit/functions/updatenotification_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/functions/updatenotification_spec.js b/tests/unit/functions/updatenotification_spec.js index f6617e4b..e5c9654f 100644 --- a/tests/unit/functions/updatenotification_spec.js +++ b/tests/unit/functions/updatenotification_spec.js @@ -20,7 +20,7 @@ async function createGitHelper (fsStatSyncMockRef, loggerMockRef, execShellSpyRe vi.doMock("logger", () => loggerMockRef.current); const defaults = await import("../../../js/defaults"); - const gitHelperModule = await import(`../../../${defaults.defaultModulesDir}/updatenotification/git_helper`); + const gitHelperModule = await import(`../../../${defaults.defaultModulesDir}/updatenotification/git_helper.js`); const GitHelper = gitHelperModule.default || gitHelperModule; const instance = new GitHelper(); execShellSpyRef.current = vi.spyOn(instance, "execShell");