반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- MySQL
- mapGetters
- scss
- Vue
- ES6
- jsx
- v-html
- 리액트
- 자료구조
- JavaScript
- State
- input
- Vue.js
- express
- 쉬운설명
- App.vue
- 자바스크립트
- CSS
- react
- event
- HOC
- nodejs
- storybook
- Wecode
- vuex
- sass
- TypeScript
- webpack
- Vue transition
- 댓글달기
Archives
- Today
- Total
익명의 개발노트
[mocha] 실행방법 본문
반응형
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
반응형
'코딩일기 > TIL' 카테고리의 다른 글
[Node.js] Vue(Vuetify) + express image upload 수정 (0) | 2019.11.04 |
---|---|
[Node.js] Vue(Vuerify) + express image upload 삽입, 삭제기능 (2) | 2019.11.03 |
[babel] polyfill과 preset-env (0) | 2019.10.28 |
[Sequelize-Transaction] (0) | 2019.10.23 |
[Mysql] 원격접속 (0) | 2019.10.23 |
Comments