rsnext/examples/with-jest
Pau Rodriguez Molina 58318a8545
Fix: upgrade react-test-renderer version to 17.0.2 (#26229)
npm i wasn't working because of outdated version of react-test-renderer.

## Bug

- [X] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ X] Make sure the linting passes
2021-06-16 21:32:41 +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 Fix: upgrade react-test-renderer version to 17.0.2 (#26229) 2021-06-16 21:32:41 +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