Skip to content

Commit

Permalink
Print the full error when we're unable to require a jest-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
negativetwelve committed Sep 1, 2017
1 parent f607f8e commit 5100438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-plugins/src/install.js
Expand Up @@ -11,7 +11,7 @@ module.exports = (plugins) => {
throw new Error(
`Unable to find jest plugin: '${plugin}'. Check that your ` +
`dependencies are installed correctly and that '${plugin}' is a ` +
`valid jest plugin.`
`valid jest plugin. Full error below:\n\n${error.message}`
);
}
});
Expand Down

0 comments on commit 5100438

Please sign in to comment.