From 3a585e94159f1c1dd2cfdf4ee176d038b12e9671 Mon Sep 17 00:00:00 2001 From: tamaslakatos Date: Thu, 1 Mar 2018 21:28:00 +0100 Subject: [PATCH] Add rootDir to runtime FileNotFound error message (#5693) --- CHANGELOG.md | 2 ++ packages/jest-config/src/utils.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 396ecdc27cf2..2d61b78aa35f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ errors to `it`/ `test` for invalid arguements. * `[jest-matcher-utils]` Add `isNot` option to `matcherHint` function ([#5512](https://github.com/facebook/jest/pull/5512)) +* `[jest-config]` Add `` to runtime files not found error report + ([#5693](https://github.com/facebook/jest/pull/5693)) ### Fixes diff --git a/packages/jest-config/src/utils.js b/packages/jest-config/src/utils.js index 6e3533009e01..8831b25c0233 100644 --- a/packages/jest-config/src/utils.js +++ b/packages/jest-config/src/utils.js @@ -40,7 +40,8 @@ export const resolve = (rootDir: string, key: string, filePath: Path) => { throw createValidationError( ` Module ${chalk.bold(filePath)} in the ${chalk.bold( key, - )} option was not found.`, + )} option was not found. + ${chalk.bold('')} is: ${rootDir}`, ); }