Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hezhii/jest-demos
- Owner: hezhii
- Created: 2018-09-19T08:52:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T22:04:35.000Z (over 3 years ago)
- Last Synced: 2024-04-14T23:10:29.867Z (7 months ago)
- Topics: demo, jest
- Language: JavaScript
- Size: 44.9 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```