From 3e71d2337efb0c073ca6dd509ce2600e1aa8836a Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Wed, 7 Feb 2024 14:40:54 +0530 Subject: [PATCH] . --- apps/api/project.json | 6 ------ package.json | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/api/project.json b/apps/api/project.json index 3e6bc4d5..dc984dde 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -57,9 +57,6 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "codeCoverage": true, - "coverageDirectory": "{workspaceRoot}/coverage/api", - "coverageReporters": ["json"], "jestConfig": "apps/api/jest.config.ts" } }, @@ -67,9 +64,6 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage-e2e/{projectRoot}"], "options": { - "codeCoverage": true, - "coverageDirectory": "{workspaceRoot}/coverage-e2e/api", - "coverageReporters": ["json"], "runInBand": true, "devServerTarget": "api:serve", "jestConfig": "apps/api/jest.e2e-config.ts" diff --git a/package.json b/package.json index 90eff209..3cd51ef7 100644 --- a/package.json +++ b/package.json @@ -103,9 +103,9 @@ "build:web": "nx run web:build --configuration=production", "build:workspace": "nx run workspace:build", "test": "nx run-many -t test --parallel", - "test:api": "nx run api:test", + "test:api": "nx run api:test -- --coverage --coverageDirectory=coverage/api --coverageReporters=json", "e2e:api:prepare": "NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' pnpm run db:deploy-migrations", - "e2e:api": "pnpm run e2e:api:prepare && NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' nx run api:test:e2e", + "e2e:api": "pnpm run e2e:api:prepare && NODE_ENV='e2e' DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests' nx run api:test:e2e -- --coverage --coverageDirectory=coverage-e2e/api --coverageReporters=json", "test:web": "nx run web:test", "test:workspace": "nx run workspace:test", "start:web": "nx run web:serve --configuration=production",