728x90 ㅊ1 Nestjs 테스트코드 + Github action으로 EC2 자동화 배포 과정 1. test 코드 작성 2. gtihub action yml 작성 1. test code 작성 - test module 만들기 describe('FirebaseService', () => { let service: FCMService; let module: TestingModule; const userId = 1; let createdFcmToken: FcmToken; afterAll(async () => { await module.close(); }); beforeAll(async () => { module = await Test.createTestingModule({ imports: [ ConfigModule.forRoot({ isGlobal: true, envFilePath: [`.env`].. 2023. 8. 29. 이전 1 다음 728x90