Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hezhii/jest-demos

A collection of simple demos of Jest
https://github.com/hezhii/jest-demos

demo jest

Last synced: about 4 hours ago
JSON representation

A collection of simple demos of Jest

Awesome Lists containing this project

README

        

# jest-demos

This repertory is a collection of simple demos of Jest for my blog post [jest-tutorial](https://blog.whezh.com/jest-tutorial/).

## How to use

First, clone the repo.

```bash
$ git clone https://github.com/hezhii/jest-demos.git
```

Then, install the dependencies.

```bash
$ cd jest-demos
$ npm i
```

Run all the tests.

```bash
$ npm test
```

You can also run a single test by `npm test path/name.test.js`. For example:

```bash
$ npm test async/fetch.test.js
```