unit test best practices.md What to use Test runner: ava React components testing: enzyme Endpoint testing: express + supertest Mocking framework: sinon External dependencies mocking: proxyquire Test cases all the following examples are using ava syntax, but they may be easily adapted to mocha or tape as well react components import test from 'ava'; import React from 'react'; import {shallow} from
![unit test best practices.md](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)