Closed erictt closed 5 years ago
Hey @erictt, thanks for using jest!
It's hard for me to say for sure without a reproduction repo, but I would guess that log4js
isn't cleaning everything up on shutdown, keeping the environment around after every test
If you can post a repo I can confirm but either way this is likely a log4js issue 👍
Just noticed how old this is, sorry for the delay 😢
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.
I'm not sure it's a bug or not. Maybe it's just because I used it in the wrong way. In my code, the
logger.info()
function is invoked in some modules, not in the test cases. here is just a simplified version, which caused the same error:Test Case:
Test Command:
jest --forceExit --runInBand --coverage --detectLeaks
Config:
Mac OS X 10.12.6 Jest v22.1.4 log4js 2.5.2 Node v9.4.0