Skip to content

Commit

Permalink
Log stack when reporting errors in jest-runtime (jestjs#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie authored and cpojer committed Jun 15, 2017
1 parent 4ef670a commit 23c28c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function run(cliArgv?: Argv, cliInfo?: Array<string>) {
runtime.requireModule(filePath);
})
.catch(e => {
console.error(chalk.red(e));
console.error(chalk.red(e.stack || e));
process.on('exit', () => process.exit(1));
});
}
Expand Down

0 comments on commit 23c28c9

Please sign in to comment.