Skip to content

Commit

Permalink
chore: skip tests when no spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Jun 25, 2024
1 parent 82bb155 commit f03a2bc
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 26 deletions.
16 changes: 8 additions & 8 deletions .env.vault

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion libs/catprofile/nestjs-module/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"projectType": "library",
"tags": ["scope:catprofile", "type:api", "platform:node"],
"// targets": "to see all targets run: nx show project nestjs-catprofile-module --web",
"targets": {}
"targets": {
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "libs/shared/nestjs-utils/jest.config.ts",
"passWithNoTests": true
}
}
}
}
10 changes: 9 additions & 1 deletion libs/fostering/nestjs-module/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"projectType": "library",
"tags": ["scope:fostering", "type:api", "platform:node"],
"// targets": "to see all targets run: nx show project nestjs-fostering-module --web",
"targets": {}
"targets": {
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "libs/shared/nestjs-utils/jest.config.ts",
"passWithNoTests": true
}
}
}
}
11 changes: 4 additions & 7 deletions libs/shared/entities/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
"projectType": "library",
"tags": ["scope:shared", "type:core", "platform:node"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"test": {
"executor": "@nx/jest:jest",
"options": {
"outputPath": "dist/libs/shared/entities",
"main": "libs/shared/entities/src/index.ts",
"tsConfig": "libs/shared/entities/tsconfig.lib.json",
"assets": ["libs/shared/entities/*.md"]
"jestConfig": "libs/shared/entities/jest.config.ts",
"passWithNoTests": true
}
}
}
Expand Down
11 changes: 4 additions & 7 deletions libs/shared/nestjs-utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
"projectType": "library",
"tags": ["scope:shared", "type:utils", "platform:node"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"test": {
"executor": "@nx/jest:jest",
"options": {
"outputPath": "dist/libs/shared/nestjs-utils",
"main": "libs/shared/nestjs-utils/src/index.ts",
"tsConfig": "libs/shared/nestjs-utils/tsconfig.lib.json",
"assets": ["libs/shared/nestjs-utils/*.md"]
"jestConfig": "libs/shared/nestjs-utils/jest.config.ts",
"passWithNoTests": true
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion libs/user/nestjs-module/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@
"projectType": "library",
"tags": ["scope:user", "type:api", "platform:node"],
"// targets": "to see all targets run: nx show project nestjs-user-module --web",
"targets": {}
"targets": {
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "libs/shared/nestjs-utils/jest.config.ts",
"passWithNoTests": true
}
}
}
}
2 changes: 1 addition & 1 deletion migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
"name": "update-19-1-0-rename-no-extra-semi"
}
]
}
}

0 comments on commit f03a2bc

Please sign in to comment.