選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

23 行
617B

  1. import { Test, TestingModule } from '@nestjs/testing';
  2. import { AppController } from './app.controller';
  3. import { AppService } from './app.service';
  4. describe('AppController', () => {
  5. let appController: AppController;
  6. beforeEach(async () => {
  7. const app: TestingModule = await Test.createTestingModule({
  8. controllers: [AppController],
  9. providers: [AppService],
  10. }).compile();
  11. appController = app.get<AppController>(AppController);
  12. });
  13. describe('root', () => {
  14. it('should return "Hello World!"', () => {
  15. expect(appController.getHello()).toBe('Hello World!');
  16. });
  17. });
  18. });