diff --git a/docs/advanced-features/compiler.md b/docs/advanced-features/compiler.md index 21725b3a9b6ab..4def26d34351b 100644 --- a/docs/advanced-features/compiler.md +++ b/docs/advanced-features/compiler.md @@ -70,7 +70,7 @@ First, update to the latest version of Next.js: `npm install next@latest`. Then, const nextJest = require('next/jest') // Providing the path to your Next.js app which will enable loading next.config.js and .env files -const createJestConfig = nextJest({ dir }) +const createJestConfig = nextJest({ dir: './' }) // Any custom config you want to pass to Jest const customJestConfig = {