Example of snapshot testing a React component with AVA
$ git clone https://github.com/avajs/ava-snapshot-example && cd ava-snapshot-example && npm install
$ npm test
Then change Hello World...!
in index.js
to something else and run npm test
again.