58318a8545
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 |
||
---|---|---|
.. | ||
__tests__ | ||
config/jest | ||
pages | ||
public | ||
styles | ||
.babelrc | ||
.gitignore | ||
jest.config.js | ||
package.json | ||
README.md | ||
setupTests.js |
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