Add simple test with Mocha

This commit is contained in:
Adolfo Reyna
2025-02-21 22:06:45 -05:00
parent 2e7c0a6915
commit ad62814d82
4 changed files with 3180 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "npx mocha test/auth.test.js",
"start": "node index.js",
"docker": "docker compose up -d",
"docker_restore": "docker-compose exec mongo mongorestore --db EMI_SOCIAL /dump/EMI_SOCIAL/",
@@ -30,5 +30,10 @@
"socket.io": "^4.6.1",
"stripe": "^8.178.0",
"web-push": "^3.4.5"
},
"devDependencies": {
"chai": "^5.2.0",
"mocha": "^11.1.0",
"supertest": "^7.0.0"
}
}