Implemented Jest tests

This commit is contained in:
Florian Sylvain
2023-01-27 12:21:41 +01:00
parent 8ec166e88e
commit 766b9ee9fb
9 changed files with 804 additions and 293 deletions
+9 -3
View File
@@ -7,8 +7,9 @@
"scripts": {
"build": "tsc",
"build:dev": "tsc -w",
"start": "concurrently npm:build \"wait-on dist/app.js && node dist/app.js\"",
"dev": "concurrently npm:build:dev \"wait-on dist/app.js && nodemon dist/app.js\""
"start": "concurrently npm:build \"wait-on dist/index.js && node dist/index.js\"",
"dev": "concurrently npm:build:dev \"wait-on dist/index.js && nodemon dist/index.js\"",
"test": "jest"
},
"author": "",
"license": "ISC",
@@ -32,10 +33,15 @@
"@types/cookie-parser": "^1.4.3",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.16",
"@types/jest": "^29.4.0",
"@types/jsonwebtoken": "^9.0.1",
"@types/supertest": "^2.0.12",
"install": "^0.13.0",
"jest": "^29.4.0",
"jest": "^29.4.1",
"npm": "^9.4.0",
"supertest": "^6.3.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
}
}