Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add rootDir to runtime FileNotFound error message (#5693)
  • Loading branch information
tamaslakatos committed Mar 1, 2018
commit 3a585e94159f1c1dd2cfdf4ee176d038b12e9671
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<rootDir>` to runtime files not found error report
([#5693](https://github.com/facebook/jest/pull/5693))

### Fixes

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