diff --git a/src/__tests__/config.test.ts b/src/__tests__/config.test.ts new file mode 100644 index 0000000..a9ac08e --- /dev/null +++ b/src/__tests__/config.test.ts @@ -0,0 +1,13 @@ +import { config } from '../config/config.js'; + +describe('Configuration', () => { + test('should load configuration successfully', () => { + expect(config).toBeDefined(); + expect(config.mongodbUri).toBeDefined(); + expect(config.nodeEnv).toBeDefined(); + }); + + test('should have valid environment', () => { + expect(['development', 'production', 'test']).toContain(config.nodeEnv); + }); +}); \ No newline at end of file