Skip to content

Latest commit

 

History

History

react-tests

Example tests in React with Karma, Mocha, Chai, Sinon and Enzyme

These examples were part of a workshop on front-end testing presented in Devlabs HQ by Ivaylo Atanasov and Kaloyan Kosev at October 12-th 2017. Inside tests/routes/Login you can find login form tests for both presentational and container components.

Workshop presentation link

Built on top of react-redux-starter-kit development boilerplate.

Requirements

  • node ^5.0.0
  • npm ^3.0.0

Running the Project

$ npm start

Running all tests

$ npm test

Alternatively run with a watcher:

$ npm run test:watch