카테고리 없음
firebase sample functions index.test.js 끝나지 않는 작업
미사구돌
2022. 4. 8. 14:29
https://firebase.google.com/docs/functions/unit-testing?hl=ko
Cloud Functions의 단위 테스트 | Firebase Documentation
Join Firebase at Google I/O online May 11-12, 2022. Register now 의견 보내기 Cloud Functions의 단위 테스트 이 페이지에서는 지속적 통합(CI) 시스템에 포함될 테스트와 같은 함수용 단위 테스트 작성에 대한 권장
firebase.google.com
일괄 작업을 끝내시겠습니까 (Y/N)? y
으로 끝을 내야할 때가 있다.
왜 터미널이 무한작업 중인거 처럼 끝나지 않는가?
functions/package.json 을 열어보면
"test": "mocha --reporter spec",
"test-online": "mocha --reporter spec test/test.online.js --exit"
이렇게 나오는 경우가 있다. "--exit"이게 터미널이 끝나도록 해준다.
firebase sample을 사다보면 --exit가 없는
"test": "mocha --reporter spec"
이걸로 node.js 함수를 테스트할 수 있는데 이 경우
일괄 작업을 끝내시겠습니까 (Y/N)? y
을 거쳐야지만 작업이 끝난다.
--exit"
이 그걸 완전하게 끝나도록 해준다.
,