diff --git a/src/routes/hooks/hooks-notifications.spec.ts b/src/routes/hooks/hooks-notifications.spec.ts index dafe3a15fe..8eab7b2c55 100644 --- a/src/routes/hooks/hooks-notifications.spec.ts +++ b/src/routes/hooks/hooks-notifications.spec.ts @@ -50,6 +50,11 @@ import { messageBuilder } from '@/domain/messages/entities/__tests__/message.bui import { messageCreatedEventBuilder } from '@/routes/hooks/entities/__tests__/message-created.builder'; import { messageConfirmationBuilder } from '@/domain/messages/entities/__tests__/message-confirmation.builder'; import { UUID } from 'crypto'; +import jwtConfiguration from '@/datasources/jwt/configuration/jwt.configuration'; +import { + JWT_CONFIGURATION_MODULE, + JwtConfigurationModule, +} from '@/datasources/jwt/configuration/jwt.configuration.module'; describe('Post Hook Events for Notifications (Unit)', () => { let app: INestApplication; @@ -75,6 +80,8 @@ describe('Post Hook Events for Notifications (Unit)', () => { const moduleFixture: TestingModule = await Test.createTestingModule({ imports: [AppModule.register(testConfiguration)], }) + .overrideModule(JWT_CONFIGURATION_MODULE) + .useModule(JwtConfigurationModule.register(jwtConfiguration)) .overrideModule(CacheModule) .useModule(TestCacheModule) .overrideModule(RequestScopedLoggingModule)