diff --git a/src/app/__tests__/app.container.test.ts b/src/app/__tests__/app.container.test.ts index 0bf602d..6562ffc 100644 --- a/src/app/__tests__/app.container.test.ts +++ b/src/app/__tests__/app.container.test.ts @@ -88,7 +88,7 @@ describe('AppContainer', () => { await appContainer.bootstrap(); expect(mockApp.useLogger).toHaveBeenCalledWith(mockLogger); - expect(mockApp.listen).toHaveBeenCalledWith(3000); + expect(mockApp.listen).toHaveBeenCalledWith(3000, '0.0.0.0'); expect(mockLogger.log).toHaveBeenCalledWith('Application is running on: http://localhost:3000'); }); }); diff --git a/src/app/app.container.ts b/src/app/app.container.ts index 4f966f0..5403069 100644 --- a/src/app/app.container.ts +++ b/src/app/app.container.ts @@ -20,7 +20,7 @@ export class AppContainer extends AbstractAppContainer { // configure logger here, so in tests we can setup differently app.useLogger(logger); - await app.listen(this.envConfig.API_PORT); + await app.listen(this.envConfig.API_PORT, '0.0.0.0'); const url = await app.getUrl(); logger.log(`Application is running on: ${url}`); }