Integration Tests with jest giving 'cannot log after tests are done' #7370
Unanswered
ElmarRoberto
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you share some more details? A reproduction perhaps? Is there a promise you're not awaiting in your tests maybe? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
On my apollo server v4 project, I'm using 'startStandaloneServer' to run it, after that I'm trying to log something, for example:
index.js
But my integration test is not ending unless I use
--forceExit
inpackage.json
command and I'm getting 'cannot log after tests are done, did you forget something?'. This is all becausestartStandaloneServer
. I already tried usingawait server.stop
, but it didn't work. Can someone help me, please?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions