Skip to content

Commit

Permalink
Add rootDir to runtime FileNotFound error message (jestjs#5693) (jest…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamas Lakatos authored and cpojer committed Mar 3, 2018
1 parent 1ab41c3 commit f7171b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
([#5558](https://github.com/facebook/jest/pull/5558))
* `[jest-matcher-utils]` Add `isNot` option to `matcherHint` function
([#5512](https://github.com/facebook/jest/pull/5512))
* `[jest-config]` Add `<rootDir>` to runtime files not found error report
([#5693](https://github.com/facebook/jest/pull/5693))
* `[expect]` Make toThrow matcher pass only if Error object is returned from
promises ([#5670](https://github.com/facebook/jest/pull/5670))
* `[expect]` Add isError to utils
Expand Down
3 changes: 2 additions & 1 deletion packages/jest-config/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<rootDir>')} is: ${rootDir}`,
);
}

Expand Down

0 comments on commit f7171b9

Please sign in to comment.