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

Update --forceExit and "did not exit for one second" message colors. #8329

Merged

console.error -> console.warn

  • Loading branch information...
scotthovestadt committed Apr 13, 2019
commit e9b9c475e56ad0868ad693ab2f0f1585004ea142
@@ -119,7 +119,7 @@ const readResultsAndExit = (

if (globalConfig.forceExit) {
if (!globalConfig.detectOpenHandles) {
console.error(
console.warn(
chalk.bold('Force exiting Jest: ') +
'Have you considered using `--detectOpenHandles` to detect ' +
'async operations that kept running after all tests finished?',
@@ -129,7 +129,7 @@ const readResultsAndExit = (
exit(code);
} else if (!globalConfig.detectOpenHandles) {
setTimeout(() => {
console.error(
console.warn(
chalk.yellow.bold(
'Jest did not exit one second after the test run has completed.\n\n',
) +
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.