Skip to content

Commit

Permalink
Add JwtConfigurationModule override
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jul 26, 2024
1 parent c8e0104 commit 8dc5aab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/routes/hooks/hooks-notifications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Server>;
Expand All @@ -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)
Expand Down

0 comments on commit 8dc5aab

Please sign in to comment.