You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionfreezeConsole(testConsole,config){// @ts-expect-error: `_log` is `private` - we should figure out some proper API heretestConsole._log=functionfakeConsolePush(_type,message){consterror=new(_jestUtil().ErrorWithStack)(`${_chalk().default.red(`${_chalk().default.bold('Cannot log after tests are done.')} Did you forget to wait for something async in your test?`)}\nAttempted to log "${message}".`,fakeConsolePush);constformattedError=(0,_jestMessageUtil().formatExecError)(error,config,{noStackTrace: false},undefined,true);process.stderr.write('\n'+formattedError+'\n');// TODO: set exit code in Jest 25// process.exitCode = 1;};
Looks like that TODO didn't get done. 😄 But I still think this would be a great change to make. I have tests that are forgetting to await in my project, and this would help track them down.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
In
jest-runner/runTest.js
:Looks like that TODO didn't get done. 😄 But I still think this would be a great change to make. I have tests that are forgetting to
await
in my project, and this would help track them down.The text was updated successfully, but these errors were encountered: