mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 18:22:23 +08:00
small fixes
This commit is contained in:
+2
-1
@@ -21,7 +21,8 @@
|
||||
"test": "npm-run-all test:jest test:mocha",
|
||||
"test:jest": "TEST_MODE=unit NODE_ENV=test jest --runInBand",
|
||||
"test:client": "TEST_MODE=unit NODE_ENV=test jest --projects client",
|
||||
"test:mocha": "TEST_MODE=unit NODE_ENV=test mocha -R ${MOCHA_REPORTER:-spec}",
|
||||
"test:server": "npm-run-all test:server:jest test:server:mocha",
|
||||
"test:server:mocha": "TEST_MODE=unit NODE_ENV=test mocha -R ${MOCHA_REPORTER:-spec}",
|
||||
"test:server:jest": "TEST_MODE=unit NODE_ENV=test jest --runInBand --projects .",
|
||||
"e2e": "./scripts/e2e.js",
|
||||
"e2e:ci": "./scripts/e2e-ci.sh",
|
||||
|
||||
@@ -42,10 +42,6 @@ if (WEBPACK) {
|
||||
logger.debug('mongodb disconnected')
|
||||
);
|
||||
|
||||
setTimeout(() => {
|
||||
mongoose.disconnect();
|
||||
}, 5000);
|
||||
|
||||
// Connect to the Mongo instance.
|
||||
mongoose
|
||||
.connect(MONGO_URL, {
|
||||
|
||||
Reference in New Issue
Block a user