1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-jest
Trevor D. Miller 93a1b73efe Removing unneeded dev dependency (#1869)
babel-jest is included automatically by jest when a babel config is present, so including it manually here doesn't do anything.

> "Note: babel-jest is automatically installed when installing Jest and will automatically transform files if a babel configuration exists in your project."
http://facebook.github.io/jest/docs/en/getting-started.html#using-babel
2017-05-04 10:06:58 -07:00
..
__tests__ Using styled-jsx for with-jest example. (#1052) 2017-02-09 19:14:52 +05:30
pages Using styled-jsx for with-jest example. (#1052) 2017-02-09 19:14:52 +05:30
.babelrc Add support to transpile import/export syntax (#1044) 2017-02-09 08:32:58 +05:30
package.json Removing unneeded dev dependency (#1869) 2017-05-04 10:06:58 -07:00
README.md Add deploy now button to the top of all example READMEs (#1763) 2017-04-22 14:51:51 +02:00

Deploy to now

Example app with jest tests

How to use

Download the example or clone the repo:

curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-jest
cd with-jest

Install it and test:

npm install
npm test

The idea behind the example

This example features:

  • An app with jest tests