rsnext/examples/with-jest
Shu Uesugi c57cdbb31d
Rename zeit.co/new → zeit.co/import (#10674)
* Replace zeit.co/new → zeit.co/import

* Update deployment.md
2020-02-24 19:08:34 -05:00
..
__tests__ Rename zeit.co/new → zeit.co/import (#10674) 2020-02-24 19:08:34 -05:00
config/jest New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
pages Rename zeit.co/new → zeit.co/import (#10674) 2020-02-24 19:08:34 -05:00
public New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
styles New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
.babelrc Update with-jest example .babelrc config (#5414) 2018-10-09 12:45:51 +02:00
jest.config.js New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
package.json New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
README.md New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
setupTests.js New Jest Example (#10396) 2020-02-03 20:36:55 +01:00

Next.js + Jest

This example shows how to configure Jest to work with Next.js.

This includes Next.js' built-in support for Global CSS, CSS Modules, and TypeScript!

How to Use

Quickly get started using Create Next App!

In your terminal, run the following command:

npx create-next-app --example with-jest

Run Jest Tests

npm test