From 9e5744a0012b5c429abf8086d5018cf32e25586c Mon Sep 17 00:00:00 2001 From: hanzlamateen Date: Wed, 6 Dec 2023 10:16:39 +0500 Subject: [PATCH] Changes to add code coverage for tests --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 31bd0aa4db..c29ef41fa2 100755 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "check-errors": "lerna run --scope '@etherealengine/*' check-errors && lerna run --ignore '@etherealengine/*' check-errors", "check-eslint": "eslint --quiet .", "clean-node-modules": "npx rimraf node_modules && npx rimraf package-lock.json && npx lerna exec npx rimraf node_modules && npx lerna exec npx rimraf package-lock.json", + "coverage": "nyc npm run test", "create-root-package-json": "cross-env ts-node --swc scripts/create-root-package-json", "depcheck": "lerna exec --no-bail --stream -- depcheck", "dev": "npm run dev-docker && concurrently -n agones,server,client,taskserver -c '#CEB793,#FF9800,#7E2D40,#B2B4B2' npm:dev-agones-silent npm:dev-server npm:dev-client npm:dev-taskserver", @@ -120,6 +121,7 @@ "lint-staged": "13.2.0", "mocha": "10.2.0", "no-master-commits": "1.1.1", + "nyc": "^15.1.0", "package-json-type": "1.0.3", "pre-commit": "1.2.2", "prettier": "3.0.2",