gridfs-stream icon indicating copy to clipboard operation
gridfs-stream copied to clipboard

How to close the connection.

Open select opened this issue 5 years ago • 0 comments

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 --detectOpenHandles to 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()

select avatar Aug 12 '20 11:08 select