2016-12-22 22:04:32 +01:00
|
|
|
# Example app with jest tests
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
2017-01-16 22:23:24 +01:00
|
|
|
Download the example [or clone the repo](https://github.com/zeit/next.js):
|
2016-12-22 22:04:32 +01:00
|
|
|
|
|
|
|
```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
|
|
|
|
```
|
|
|
|
|
2016-12-23 00:05:49 +01:00
|
|
|
Install it and test:
|
2016-12-22 22:04:32 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
npm test
|
|
|
|
```
|
|
|
|
|
|
|
|
## The idea behind the example
|
|
|
|
|
|
|
|
This example features:
|
|
|
|
|
|
|
|
* An app with jest tests
|