// Loaded before every test file via `node --test --import ./test/setup.js`. // // Its only job is to satisfy the `required(...)` env checks in src/config.js // so we can `import` any module in the tree from a test file without // module-load blowing up. None of these values are ever used at rest — the // tests exercise pure functions, and any code path that would actually make // a network call is either mocked or not exercised by the test suite. // // If you add a new `required('FOO')` call in src/config.js, add a stub here. const dummy = { WEBEX_BOT_TOKEN: 'test-bot-token', WEBEX_SVC_CLIENT_ID: 'test-svc-client-id', WEBEX_SVC_CLIENT_SECRET: 'test-svc-client-secret', TWILIO_ACCOUNT_SID: 'test-twilio-sid', TWILIO_AUTH_TOKEN: 'test-twilio-token', SIW_USERNAME: 'test-siw-user', SIW_PASSWORD: 'test-siw-password', GOOGLE_API_KEY: 'test-google-key', WS_TOKEN: 'test-ws-token', }; for (const [key, value] of Object.entries(dummy)) { if (process.env[key] === undefined || process.env[key] === '') { process.env[key] = value; } }