Skip to content

Commit f7171b9

Browse files
Tamas Lakatoscpojer
authored andcommitted
Add rootDir to runtime FileNotFound error message (#5693) (#5702)
1 parent 1ab41c3 commit f7171b9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
([#5558](https://github.com/facebook/jest/pull/5558))
99
* `[jest-matcher-utils]` Add `isNot` option to `matcherHint` function
1010
([#5512](https://github.com/facebook/jest/pull/5512))
11+
* `[jest-config]` Add `<rootDir>` to runtime files not found error report
12+
([#5693](https://github.com/facebook/jest/pull/5693))
1113
* `[expect]` Make toThrow matcher pass only if Error object is returned from
1214
promises ([#5670](https://github.com/facebook/jest/pull/5670))
1315
* `[expect]` Add isError to utils

packages/jest-config/src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export const resolve = (rootDir: string, key: string, filePath: Path) => {
4040
throw createValidationError(
4141
` Module ${chalk.bold(filePath)} in the ${chalk.bold(
4242
key,
43-
)} option was not found.`,
43+
)} option was not found.
44+
${chalk.bold('<rootDir>')} is: ${rootDir}`,
4445
);
4546
}
4647

0 commit comments

Comments
 (0)