From cdd67a10c3e5c732e6ff85297cbb1c96dbc138c4 Mon Sep 17 00:00:00 2001 From: Hung Viet Nguyen Date: Wed, 15 Jun 2022 12:24:39 +0700 Subject: [PATCH] Update Jest config with SWC docs --- docs/advanced-features/compiler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {