No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
src
.babelrc
.gitignore
.jestrc
README.md
package.json
webpack.config.js
yarn.lock

README.md

example-jest-snapshot

This is sample for Jest feature "Snapshot Testing". See src/__tests__ if you interested in it.

Prerequisites

I'm using Node v6 and yarn.

Setup

$ yarn # Or simply npm install

Run

$ yarn start

Test

$ yarn test

If you want to update snapshots, hit it with -u option.

$ yarn test -- -u

To check snapshot as more like HTML, you can use jest-html

$ yarn jest-html