gridfs-stream
gridfs-stream copied to clipboard
How to close the connection.
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with
--detectOpenHandlesto troubleshoot this issue.
When I write unit tests with jest the test does not end. I would love to close the connection like in the following example, is that possible?
const grid = require('gridfs-stream');
gfs = grid(db, mongo);
gfs.close()