fix: better dev mode comparaison, useful for tests

This commit is contained in:
MasterAcnolo
2026-08-02 09:25:39 +02:00
parent 72c152d964
commit bc1c62dc35

View File

@@ -7,7 +7,7 @@ const path = require("path");
* Indicates whether the application is running in development mode. * Indicates whether the application is running in development mode.
* Determined by Electron's packaging state. * 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. * Resolves the configuration file path depending on runtime environment.