Added tests for the event endpoints

Also installed chai, chai http & mocha
This commit is contained in:
Stefan-5422
2021-10-18 13:14:13 +02:00
parent a966bfffd9
commit 8d50c44b7e
4 changed files with 968 additions and 4 deletions
+8 -2
View File
@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "ts-node src/app.ts",
"dev": "nodemon src/app.ts"
"dev": "nodemon src/app.ts",
"test": "mocha -r ts-node/register --timeout 10000 src/Tests/*.ts"
},
"repository": {
"type": "git",
@@ -20,12 +20,18 @@
"homepage": "https://github.com/detleph/server#readme",
"dependencies": {
"@prisma/client": "^3.2.1",
"@types/chai-http": "^4.2.0",
"chai-http": "^4.3.0",
"dotenv": "^10.0.0",
"express": "^4.17.1"
},
"devDependencies": {
"@types/chai": "^4.2.22",
"@types/express": "^4.17.13",
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.3",
"chai": "^4.3.4",
"mocha": "^9.1.3",
"prisma": "^3.2.1",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"