add docker

This commit is contained in:
Николай Вигдоров
2025-03-04 23:43:48 +03:00
parent f54a1480b9
commit 6121847fe3
6 changed files with 30 additions and 56 deletions

View File

@ -1,22 +0,0 @@
import {Test, TestingModule} from '@nestjs/testing';
import {AppController} from './app.controller';
import {AppService} from './app.service';
describe('AppController', () => {
let appController: AppController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [AppController],
providers: [AppService],
}).compile();
appController = app.get<AppController>(AppController);
});
describe('root', () => {
it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe('Hello World!');
});
});
});

View File

@ -21,6 +21,6 @@ async function bootstrap() {
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('api', app, document);
await app.listen(4003);
await app.listen(3000);
}
bootstrap();