summary refs log tree commit diff
path: root/api/package.json
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-23 17:03:36 +0200
committerGitHub <noreply@github.com>2021-09-23 17:03:36 +0200
commit265dd70ce9964821c8d179e9636af39ac83881b0 (patch)
tree94eddae38c87522d56a5a08e4172aed4971c2320 /api/package.json
parentMerge pull request #394 from ChrisChrome/erlpack-fix (diff)
parent:bug: prepare/postinstall only works for packages not local npm install (diff)
downloadserver-ts-265dd70ce9964821c8d179e9636af39ac83881b0.tar.xz
Merge pull request #372 from fosscord/unittests
Automatic Unittests + documentation
Diffstat (limited to 'api/package.json')
-rw-r--r--api/package.json26
1 files changed, 19 insertions, 7 deletions
diff --git a/api/package.json b/api/package.json

index 98b15787..cc47a45a 100644 --- a/api/package.json +++ b/api/package.json
@@ -5,17 +5,17 @@ "main": "dist/Server.js", "types": "dist/Server.d.ts", "scripts": { - "test:only": "node -r ./scripts/tsconfig-paths-bootstrap.js node_modules/.bin/jest --coverage --verbose --forceExit ./tests", + "test:only": "jest --coverage --verbose --forceExit ./tests", "test": "npm run build && npm run test:only", "test:watch": "jest --watch", - "start": "npm run build && node -r ./scripts/tsconfig-paths-bootstrap.js dist/start", + "start": "npm run build && node dist/start", "build": "npx tsc -b .", "build-docker": "tsc -p tsconfig-docker.json", "dev": "tsnd --respawn src/start.ts", - "patch": "npx patch-package", + "patch": "ts-patch install -s && npx patch-package", "postinstall": "npm run patch", - "generate:docs": "ts-node scripts/generate_openapi_schema.ts", - "generate:schema": "ts-node scripts/generate_body_schema.ts" + "generate:docs": "node scripts/generate_openapi.ts", + "generate:schema": "node scripts/generate_schema.ts" }, "repository": { "type": "git", @@ -36,11 +36,15 @@ }, "homepage": "https://fosscord.com", "devDependencies": { + "@babel/core": "^7.15.5", + "@babel/preset-env": "^7.15.6", + "@babel/preset-typescript": "^7.15.0", "@types/amqplib": "^0.8.1", "@types/bcrypt": "^5.0.0", "@types/express": "^4.17.9", "@types/i18next-node-fs-backend": "^2.1.0", "@types/jest": "^27.0.1", + "@types/jest-expect-message": "^1.0.3", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", "@types/mongoose": "^5.10.5", @@ -49,14 +53,19 @@ "@types/multer": "^1.4.5", "@types/node": "^14.17.9", "@types/node-fetch": "^2.5.7", + "@types/supertest": "^2.0.11", "@zerollup/ts-transform-paths": "^1.7.18", "0x": "^4.10.2", + "babel-jest": "^27.2.0", "caxa": "^2.1.0", "image-size": "^1.0.0", "jest": "^26.6.3", + "jest-expect-message": "^1.0.2", + "jest-runtime": "^27.2.1", "saslprep": "^1.0.3", "ts-node": "^9.1.1", "ts-node-dev": "^1.1.6", + "ts-patch": "^1.4.4", "typescript": "^4.4.2", "typescript-json-schema": "0.50.1" }, @@ -77,7 +86,7 @@ "express": "^4.17.1", "express-validator": "^6.9.2", "form-data": "^3.0.0", - "i18next": "^19.8.5", + "i18next": "^19.9.2", "i18next-http-middleware": "^3.1.3", "i18next-node-fs-backend": "^2.1.3", "jsonwebtoken": "^8.5.1", @@ -98,7 +107,10 @@ "setupFiles": [ "<rootDir>/jest/setup.js" ], - "globalSetup": "<rootDir>/scripts/globalSetup.js", + "setupFilesAfterEnv": [ + "jest-expect-message" + ], + "globalSetup": "<rootDir>/jest/globalSetup.js", "verbose": true } }