Unverified Commit 1bf2ab6a authored by Jesús Ferretti's avatar Jesús Ferretti Committed by GitHub

docs(testing): add JSDoc typing in `jest.config.js` (#40090)

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`
parent 5b3e20a1
...@@ -281,6 +281,7 @@ const createJestConfig = nextJest({ ...@@ -281,6 +281,7 @@ const createJestConfig = nextJest({
}) })
// Add any custom config to be passed to Jest // Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const customJestConfig = { const customJestConfig = {
// Add more setup options before each test is run // Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], // setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment