azz0r / guess-who

Wrestling version of Guess who the game. Built using React, Redux & Webpack (test: Mocha, Chai, Enzyme)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

!Guess Who! ๐Ÿ‘ณ๐Ÿผโ€๐Ÿ‘ท๐Ÿปโ€๐Ÿ‘ฎ๐Ÿพ๐Ÿ‘ผ๐Ÿฝ๐Ÿ‘ฉ๐Ÿฝ๐Ÿ‘ฑ๐Ÿป๐Ÿ‘ฆ๐Ÿฟ

๐Ÿ“• Index

๐Ÿ–ฅ Installing

npm cache clean;
npm install
npm run start;

๐Ÿš€ Launching

  • Development stack npm run start
  • Build production stack npm run build

๐Ÿ’ช Unit Testing

Powered by Mocha, Chai, Enzyme, Sinon.

Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.

Sinon is for test spies, stubs and mocks.

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.

Chai is a BDD / TDD assertion library

  • Run unit tests npm run test:unit
  • Run unit tests with watch, any changes result in a re-run npm run test:unit:watch

Tests are written by creating .spec. files inside the component directory, e.g.

/src/components/button/expand.js pairs with /src/components/button/expand.spec.js /src/components/brands/brands.js pairs with /src/components/brands/brands.spec.js

About

Wrestling version of Guess who the game. Built using React, Redux & Webpack (test: Mocha, Chai, Enzyme)


Languages

Language:JavaScript 92.2%Language:CSS 4.4%Language:HTML 1.9%Language:AppleScript 1.5%