diff --git a/backend/package.json b/backend/package.json index 83db321f..a49b4a1b 100644 --- a/backend/package.json +++ b/backend/package.json @@ -13,7 +13,8 @@ "format-check": "prettier --check src/", "lint": "eslint . --fix", "pretest:unit": "npm run build", - "test:unit": "vitest --run" + "test:unit": "vitest --run", + "test:coverage": "vitest --run --coverage.enabled true" }, "dependencies": { "@mikro-orm/core": "6.4.9", diff --git a/package.json b/package.json index 64cfd665..abd18fcf 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "format-check": "npm run format-check --workspace=backend --workspace=common --workspace=frontend", "lint": "npm run lint --workspace=backend --workspace=common --workspace=frontend", "pretest:unit": "npm run build", - "test:unit": "npm run test:unit --workspace=backend --workspace=frontend" + "test:unit": "npm run test:unit --workspace=backend --workspace=frontend", + "test:coverage": "npm run test:coverage --workspace=backend --workspace=frontend" }, "workspaces": [ "backend",