import test from 'node:test'; import assert from 'node:assert/strict'; import { loadConfig } from '../src/config.js'; test('production rejects missing secrets', () => assert.throws(() => loadConfig({ NODE_ENV: 'production' }), /Missing environment variables/)); test('development permits local defaults', () => assert.equal(loadConfig({ NODE_ENV: 'development' }).allowDevLogin, true));