Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thibaudcolas/gilded-roses

Starting and ending code for the GildedRose Refactoring Kata in JavaScript with Mocha and Chai
https://github.com/thibaudcolas/gilded-roses

chai gildedrose kata mocha

Last synced: about 1 month ago
JSON representation

Starting and ending code for the GildedRose Refactoring Kata in JavaScript with Mocha and Chai

Awesome Lists containing this project

README

        

gilded-roses
============

[![Build Status](https://img.shields.io/travis/thibaudcolas/gilded-roses.svg?style=flat-square)](https://travis-ci.org/thibaudcolas/gilded-roses) [![devDependency Status](https://img.shields.io/david/dev/thibaudcolas/gilded-roses.svg?style=flat-square)](https://david-dm.org/thibaudcolas/gilded-roses) [![Code Climate](https://img.shields.io/codeclimate/github/thibaudcolas/gilded-roses.svg?style=flat-square)](https://codeclimate.com/github/thibaudcolas/gilded-roses) [![Coverage](https://img.shields.io/codeclimate/coverage/github/thibaudcolas/gilded-roses.svg?style=flat-square)](https://codeclimate.com/github/thibaudcolas/gilded-roses/coverage)

> A refactoring kata, originally from [Emily Bache](https://github.com/emilybache/Refactoring-Katas), to execute during a [Coding Dojo](http://codingdojo.org/).

Testing stack taken from http://onsen.io/blog/mocha-chaijs-unit-test-coverage-es6/:

- [Mocha](https://mochajs.org/)
- [Chai](http://chaijs.com/)
- [Isparta](https://github.com/douglasduteil/isparta)
- [Babel](https://babeljs.io/)

## Setup

```sh
git clone https://github.com/thibaudcolas/gilded-roses.git
cd gilded-roses/
nvm install
npm install
npm install -g eslint eslint-config-airbnb eslint-plugin-react babel-eslint
```

## Doing the kata

```sh
# Run the tests with a watcher
npm start
# Run the coverage
npm run coverage
open coverage/lcov-report/index.html
# Run the linting
npm run lint
```