백스테이지

  • 홈
  • 태그
  • 방명록

nest 1

nestjs jest unit test 'Cannot find module' 문제 해결

Nestjs로 진행한 프로젝트에서 jest를 사용하여 unit test를 해보려고 했는데 오류가 발생했다. 현재 나의 코드는 testing module 생성만 해놓은 상황이었다. beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [BossRaidController], providers: [ { provide: BossRaidService, useFactory: mockBossraidService, }, ], }).compile(); controller = module.get(BossRaidController); service = module.get(BossRaidService..

카테고리 없음 2022.11.21
이전
1
다음
더보기
  • 분류 전체보기 (9)

최근글과 인기글

  • 최근글
  • 인기글

Tag

Javascript, 입양시각구하기, 스택, level3, nest, 블로그이전, 알고리즘, jest, heap, SSR, 프로그래머스, TypeScript, WITH절, HTTPS, SSG, Python, Mock, 코딩테스트, nestjs, Mocking,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바