Skip to content

Commit

Permalink
docs(testing): add JSDoc typing in jest.config.js (#40090)
Browse files Browse the repository at this point in the history
This PR improves the Testing documentation in [Setting up Jest (with the Rust Compiler)](https://nextjs.org/docs/testing#setting-up-jest-with-the-rust-compiler). It adds JSDoc typing in `jest.config.js`.

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
  • Loading branch information
jferrettiboke committed Aug 30, 2022
1 parent 5b3e20a commit 1bf2ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/testing.md
Expand Up @@ -281,6 +281,7 @@ const createJestConfig = nextJest({
})

// Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const customJestConfig = {
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
Expand Down

0 comments on commit 1bf2ab6

Please sign in to comment.