/** * Jest setupFiles hook: provide dummy values for env vars that modules read * at *import time* (module-load side effects), so unit specs that transitively * import those modules don't crash before a single test runs. * * These are never exercised by unit tests — the services that use them are * stubbed via DI — but the values must exist because the reads happen at * module evaluation, before any mock is installed. * * DUC_URL: read at load time in src/modules/duc/client.config.ts, reached via * the AuthClientService import chain. */ process.env.DUC_URL = process.env.DUC_URL || 'duc:localhost:0';