- NodeJs
- npm
- Quik web
-
Mocha: it's the top-level tool responsible for finding and loading test files, trnaspiling them, and running the test code itself: the
describe
andit
blocks that compose the tests. -
Chai: is the assertion library. It supplies the
expect
andassert
calls we'll use in the tests to verify everything is working correctly. web -
Sinon: is a library for creating and inspecting spies. Spies let you mock and stub pieces of functionality in order to keep the tests focused on the component under test. web
-
Enzyme: is a library for rendering and making assertions on React components. web
- Run
mocha
at the command line, wit some arguments. - Mocha finds the test files and transpiles them.
- Mocha executes the tests, which are writeen in Javascript (EcmaScript 6).
- Each test will
import
enzyme and chai, then use them to render components and make assertions.
- Install module dependencies with
npm install
- Install Quik
npm i -g quik
- Install Mocha
npm i -g mocha
- To run your test, simply type
npm test
- Run
npm start
to start the app.