trying server.close() but that doesn’t seem to do ...
# prisma-whats-new
w
trying server.close() but that doesn’t seem to do it
l
Did you try
server.express.stop()
That might do it
No, that doesn't work. Hum
w
yeah
trying to stop the server for tests
l
It looks like you need an reference of
app.listen()
to run
.close()
, but it looks like Yoga swallows that instance
w
hmnmmm
got it!
l
w
server.start() returns a promise, so you can await that
and it gives you the server
👍 1
💥 1
ah! thank you too
💯 1