test(server): more reliable test for server

This commit is contained in:
pan93412
2022-01-26 14:30:00 +08:00
parent 4e434a2691
commit 9e0c900f6f
4 changed files with 48 additions and 16 deletions
+2 -1
View File
@@ -4,7 +4,7 @@
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"test": "mocha -r intelli-espower-loader -t 20000 server.test.js --exit",
"lint": "eslint \"**/*.{js,ts}\"",
"lint-fix": "eslint --fix \"**/*.{js,ts}\"",
"prepare": "husky install",
@@ -58,6 +58,7 @@
"devDependencies": {
"@types/express": "^4.17.13",
"@types/express-fileupload": "^1.2.2",
"@types/mocha": "^9.1.0",
"@types/node": "16.11.19",
"@typescript-eslint/eslint-plugin": "5.0.0",
"@typescript-eslint/parser": "5.0.0",