We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f19f6 commit ca78dd5Copy full SHA for ca78dd5
1 file changed
jest.global-teardown.js
@@ -1,9 +1,16 @@
1
const process = require('process');
2
+const mongoTeardown = require('@shelf/jest-mongodb/teardown');
3
+
4
+module.exports = async () => {
5
+ /**
6
+ * Cleanup MongoDB Memory Server
7
+ * @shelf/jest-mongodb should handle this automatically, but we try to ensure cleanup
8
+ */
9
+ await mongoTeardown();
10
-module.exports = () => {
11
if (process.env.CI) {
12
setTimeout(() => {
13
process.exit(0);
14
}, 1000);
15
}
-};
16
+};
0 commit comments