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.git
Then, install the dependencies.
$ cd jest-demos
$ npm i
Run all the tests.
$ npm test
You can also run a single test by npm test path/name.test.js
. For example:
$ npm test async/fetch.test.js