Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Feb 7, 2024
1 parent 0aa8fb4 commit 3e71d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,13 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"codeCoverage": true,
"coverageDirectory": "{workspaceRoot}/coverage/api",
"coverageReporters": ["json"],
"jestConfig": "apps/api/jest.config.ts"
}
},
"test:e2e": {
"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"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3e71d23

Please sign in to comment.