rsnext/examples/with-jest
Luc Leray f52955ec94
Clean up examples package.json (#27121)
Clean up package.json files in the `examples` directory:
- Add `private: true`
- Remove `version` (because they are irrelevant for packages that are not meant to be published)
- Remove `name` (because they are optional for packages that are not meant to be published, and when someone clones an example, they often rename it and the property becomes stale)
- Remove `author`
- Remove `description`
- Remove `license`

Also remove `with-dynamic-app-layout` example completely, since it does the same as `layout-component` (https://github.com/vercel/next.js/pull/27121#discussion_r668178408).

## Documentation / Examples

- [x] Make sure the linting passes
2021-07-12 19:58:03 +00:00
..
__tests__ Fix deploy buttons URLs (#20834) 2021-01-07 01:40:29 +00:00
config/jest New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
pages Fix deploy buttons URLs (#20834) 2021-01-07 01:40:29 +00: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
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
jest.config.js New Jest Example (#10396) 2020-02-03 20:36:55 +01:00
package.json Clean up examples package.json (#27121) 2021-07-12 19:58:03 +00:00
README.md Unify installation scripts for example apps (#19808) 2021-01-24 17:05:49 +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 with-jest-app
# or
yarn create next-app --example with-jest with-jest-app

Run Jest Tests

npm test