test: added supertest

This commit is contained in:
Riccardo
2023-08-04 21:41:44 +02:00
parent ed8b37c517
commit c913e5ecec
11 changed files with 14917 additions and 646 deletions

View File

@@ -12,7 +12,7 @@
"lint": "eslint --ext .ts . --fix",
"typecheck": "tsc",
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"test": "jest --runInBand",
"test": "jest --runInBand --detectOpenHandles",
"prepare": "husky install"
},
"lint-staged": {
@@ -24,16 +24,21 @@
]
},
"dependencies": {
"express": "^4.18.2"
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"jsonschema": "^1.4.1"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@swc/core": "^1.3.69",
"@swc/jest": "^0.2.26",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
@@ -44,6 +49,7 @@
"lint-staged": "^13.2.3",
"nodemon": "^3.0.1",
"prettier": "^3.0.0",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"