@shelf/jest-mongodb
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "@shelf/jest-mongodb", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"private": false, | ||
@@ -47,9 +47,9 @@ "description": "Run your tests using Jest & MongoDB in Memory server", | ||
"@shelf/prettier-config": "1.0.0", | ||
"eslint": "8.16.0", | ||
"eslint": "8.18.0", | ||
"husky": "8.0.1", | ||
"jest": "28.1.0", | ||
"lint-staged": "12.4.3", | ||
"mongodb": "4.6.0", | ||
"prettier": "2.6.2", | ||
"typescript": "4.7.2" | ||
"jest": "28.1.1", | ||
"lint-staged": "13.0.2", | ||
"mongodb": "4.7.0", | ||
"prettier": "2.7.1", | ||
"typescript": "4.7.4" | ||
}, | ||
@@ -56,0 +56,0 @@ "peerDependencies": { |
const debug = require('debug')('jest-mongodb:teardown'); | ||
const {join} = require('path'); | ||
const fs = require('fs'); | ||
const cwd = process.cwd(); | ||
const globalConfigPath = join(cwd, 'globalConfig.json'); | ||
module.exports = async function () { | ||
@@ -8,2 +13,10 @@ debug('Teardown mongod'); | ||
} | ||
fs.unlink(globalConfigPath, err => { | ||
if (err) { | ||
debug('Config could not be deleted'); | ||
return; | ||
} | ||
debug('Config is deleted'); | ||
}); | ||
}; |
18435
308
9