Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
moduleNotFound: add file where the module is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Feb 22, 2017
1 parent 89f5669 commit da5b496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/formatters/moduleNotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function formatErrors (errors) {
return concat(
dependenciesNotFound(errors.length),
'',
errors.map(e =>`* ${e.module}`),
errors.map(e =>`* ${e.module}${e.file ? ` in ${e.file}` : ''}`),
'',
forgetToInstall(errors.length)
);
Expand Down
8 changes: 4 additions & 4 deletions test/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ it('integration : module-errors', async() => {
'',
'These dependencies were not found in node_modules:',
'',
'* ./non-existing',
'* not-found',
'* ./non-existing in ./test/fixtures/module-errors/index.js',
'* not-found in ./test/fixtures/module-errors/index.js',
'',
'Did you forget to run npm install --save for them?'
]);
Expand Down Expand Up @@ -125,8 +125,8 @@ it('integration : webpack multi compiler : module-errors', async() => {
'',
'These dependencies were not found in node_modules:',
'',
'* ./non-existing',
'* not-found',
'* ./non-existing in ./test/fixtures/multi-compiler-module-errors/index.js',
'* not-found in ./test/fixtures/multi-compiler-module-errors/index2.js',
'',
'Did you forget to run npm install --save for them?'
]);
Expand Down

0 comments on commit da5b496

Please sign in to comment.