36 lines
499 B
Markdown
36 lines
499 B
Markdown
|
# Example app with jest tests
|
||
|
|
||
|
## How to use
|
||
|
|
||
|
Download the example:
|
||
|
|
||
|
```bash
|
||
|
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-jest
|
||
|
cd with-jest
|
||
|
```
|
||
|
|
||
|
or clone the repo:
|
||
|
|
||
|
```bash
|
||
|
git clone https://github.com/zeit/next.js.git --depth=1
|
||
|
cd next.js/examples/with-jest
|
||
|
```
|
||
|
|
||
|
Install the dependencies:
|
||
|
|
||
|
```bash
|
||
|
npm install
|
||
|
```
|
||
|
|
||
|
Run the tests:
|
||
|
|
||
|
```bash
|
||
|
npm test
|
||
|
```
|
||
|
|
||
|
## The idea behind the example
|
||
|
|
||
|
This example features:
|
||
|
|
||
|
* An app with jest tests
|