This commit is contained in:
2025-12-12 21:39:48 +01:00
parent ddbd99b747
commit cae81b1088
49 changed files with 777 additions and 269 deletions

View File

@@ -3,7 +3,7 @@ import { DIContainer } from '../../apps/companion/main/di-container';
test('renderer -> preload -> main: set/get updates BrowserModeConfigLoader (reproduces headless-toggle bug)', () => {
// Ensure environment is development so toggle is available
process.env.NODE_ENV = 'development';
(process.env as any).NODE_ENV = 'development';
// Provide a minimal electron.app mock so DIContainer can resolve paths in node test environment
// This avoids calling the real Electron runtime during unit/runner tests.