diff --git a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.ts.snap b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.ts.snap index 990000454eeb..514648c12674 100644 --- a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.ts.snap +++ b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.ts.snap @@ -367,7 +367,7 @@ exports[`preset throws when module was found but no "jest-preset.js" or "jest-pr exports[`preset throws when preset not found 1`] = ` "Validation Error: - Preset doesnt-exist not found. + Preset doesnt-exist not found relative to rootDir /root/path/foo. Configuration Documentation: https://jestjs.io/docs/configuration diff --git a/packages/jest-config/src/normalize.ts b/packages/jest-config/src/normalize.ts index e8b3cc9d726a..a0724cc09754 100644 --- a/packages/jest-config/src/normalize.ts +++ b/packages/jest-config/src/normalize.ts @@ -169,7 +169,7 @@ const setupPreset = async ( ); } throw createConfigError( - ` Preset ${chalk.bold(presetPath)} not found.`, + ` Preset ${chalk.bold(presetPath)} not found relative to rootDir ${chalk.bold(options.rootDir)}.`, ); } throw createConfigError(