From bd11f10587debe5f126d8d3336a489563e82ff3c Mon Sep 17 00:00:00 2001 From: tamaslakatos Date: Thu, 1 Mar 2018 21:01:54 +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..2c7f4faf2bee 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-utils]` Add `` to run 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}`, ); }