PracticeEveryday

Mocha test후 터미널 종료하기 본문

정리

Mocha test후 터미널 종료하기

kimddakki 2022. 6. 28. 22:18
Mocah test 완료 후 스스로 종료하게 하기

 -  Mocha 테스트 코드 실행 후 해당 입력 스트림을 직접 꺼주지 않으면 프로세스가 계속 유지됨

 

https://stackoverflow.com/questions/50372866/mocha-not-exiting-after-test

 

Mocha not exiting after test

I'm starting with tests in Node. Using mocha, chai and nock (to intercept external HTTP api calls). I have written 3 tests, all of them are a pass, however, when I added the 3rd test, mocha stopped

stackoverflow.com

 

※ --exit 옵션을 Mocha를 실행시키면 테스팅이 끝난 후 자동으로 닫힌다!!

'정리' 카테고리의 다른 글

DB 면접 예상 질문  (0) 2022.08.03
Git Fetch  (0) 2022.07.08
Mocha + ES6  (0) 2022.07.05
Git 특정 Branch Clone 하기  (0) 2022.07.01
Docker  (0) 2022.06.30
Comments