feat: integrate ConfigModule into module dependencies test

- Added `ConfigModule` to the imports in the module dependencies integration test to enhance configuration management during testing.
- This change supports better handling of environment variables and application settings in the test environment.
This commit is contained in:
Eli Bosley
2025-11-19 06:34:54 -05:00
parent 9b92cd072c
commit f49fdf0e9a

View File

@@ -1,4 +1,5 @@
import { CacheModule } from '@nestjs/cache-manager';
import { ConfigModule } from '@nestjs/config';
import { Test } from '@nestjs/testing';
import { describe, expect, it } from 'vitest';
@@ -10,7 +11,11 @@ describe('Module Dependencies Integration', () => {
let module;
try {
module = await Test.createTestingModule({
imports: [CacheModule.register({ isGlobal: true }), RestModule],
imports: [
ConfigModule.forRoot({ ignoreEnvFile: true, isGlobal: true }),
CacheModule.register({ isGlobal: true }),
RestModule,
],
}).compile();
expect(module).toBeDefined();