summary refs log tree commit diff
path: root/api/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'api/package.json')
-rw-r--r--api/package.json20
1 files changed, 15 insertions, 5 deletions
diff --git a/api/package.json b/api/package.json

index 7b2de011..37db6ff3 100644 --- a/api/package.json +++ b/api/package.json
@@ -5,7 +5,7 @@ "main": "dist/Server.js", "types": "dist/Server.d.ts", "scripts": { - "test": "jest", + "test": "npm run build && jest --coverage --verbose ./tests", "test:watch": "jest --watch", "start": "npm run build && node dist/start", "build": "npx tsc -b .", @@ -35,6 +35,7 @@ "@types/bcrypt": "^5.0.0", "@types/express": "^4.17.9", "@types/i18next-node-fs-backend": "^2.1.0", + "@types/jest": "^27.0.1", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", "@types/mongoose": "^5.10.5", @@ -51,7 +52,7 @@ "saslprep": "^1.0.3", "ts-node": "^9.1.1", "ts-node-dev": "^1.1.6", - "typescript": "^4.1.2" + "typescript": "^4.4.2" }, "dependencies": { "@fosscord/util": "file:../util", @@ -73,12 +74,21 @@ "i18next-http-middleware": "^3.1.3", "i18next-node-fs-backend": "^2.1.3", "jsonwebtoken": "^8.5.1", - "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.10", + "lambert-server": "^1.2.10", + "missing-native-js-functions": "^1.2.11", "mongoose": "^5.12.3", "mongoose-autopopulate": "^0.12.3", "mongoose-long": "^0.3.2", "multer": "^1.4.2", - "node-fetch": "^2.6.1" + "node-fetch": "^2.6.1", + "supertest": "^6.1.6", + "typeorm": "^0.2.37" + }, + "jest": { + "setupFiles": [ + "<rootDir>/jest/setup.js", + "<rootDir>/scripts/setup_test.js" + ], + "verbose": true } }