Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thibaudcolas/gilded-roses
- Owner: thibaudcolas
- License: mit
- Created: 2013-11-26T08:05:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T19:53:45.000Z (over 8 years ago)
- Last Synced: 2024-12-16T03:40:11.079Z (about 1 month ago)
- Topics: chai, gildedrose, kata, mocha
- Language: JavaScript
- Homepage:
- Size: 865 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```