From 1bf2ab6a666638e09eeeededa7236bc4c5fb7f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Ferretti?= Date: Tue, 30 Aug 2022 16:38:29 +0200 Subject: [PATCH] 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` --- docs/testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/testing.md b/docs/testing.md index f185d0eac486..e3504d418de3 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -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: ['/jest.setup.js'],