This repertory is a collection of simple demos of Jest for my blog post jest-tutorial.
First, clone the repo.
$ git clone https://github.com/hezhii/jest-demos.gitThen, install the dependencies.
$ cd jest-demos
$ npm iRun all the tests.
$ npm testYou can also run a single test by npm test path/name.test.js. For example:
$ npm test async/fetch.test.js