Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rootDir to runtime FileNotFound error message (#5693) #5702

Merged
merged 2 commits into from
Mar 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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