From 609ac2eadb23677e6c19818a1d92f9fadb511a73 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Sun, 2 Aug 2026 09:25:39 +0200 Subject: [PATCH] fix: better dev mode comparaison, useful for tests --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js b/config.js index 56e31aa..4134004 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ const path = require("path"); * Indicates whether the application is running in development mode. * Determined by Electron's packaging state. */ -const devMode = !app.isPackaged; +const devMode = process.env.NODE_ENV === "test" || !app?.isPackaged; /** * Resolves the configuration file path depending on runtime environment.