코딩일기/TIL
[mocha] 실행방법
캡틴.JS
2019. 10. 30. 19:56
반응형
npm install -g mocha
실행은 터미널에서 아래와 같이 test 코드 경로를 넣어주면 된다.
mocha test/local/siteManager/admin/adminManagerController.test.js //예시
공식문서 : https://mochajs.org/#working-with-promises
Mocha - the fun, simple, flexible JavaScript test framework
Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct te
mochajs.org
반응형