Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaeyeophan/javascript_test_tutorial

Tutorial about TDD & BDD with Javascript
https://github.com/jaeyeophan/javascript_test_tutorial

bdd chai mocha rest-api test

Last synced: 18 days ago
JSON representation

Tutorial about TDD & BDD with Javascript

Awesome Lists containing this project

README

        

# BDD with mocha and Chai
JavaScript의 Unit Test에 대한 tutorial Github repository

### Blog Posting
1. [Mocha Getting started](http://jaeyeophan.github.io/2017/04/23/BDD-1-mocha/)
2. [Chai Getting started](https://jaeyeophan.github.io/2017/04/23/BDD-2-chai/)
3. [Chai-http 사용하여 REST API Test하기](https://jaeyeophan.github.io/2017/04/23/BDD-3-chai-http/)

## Install
```bash
$ git clone https://github.com/JaeYeopHan/javascript_test_tutorial js_test_tutorial
$ cd js_test_tutorial
$ npm install
```
or
```bash
$ yarn global add mocha
$ yarn global add chai
$ yarn add chai-http
$ yarn global add json-server
```

## Usage
```bash
$ npm run fake:start
$ npm test
```