diff --git a/apps/backend-e2e/project.json b/apps/backend-e2e/project.json index 4ea1fc3f7e..a7ef29ac0d 100644 --- a/apps/backend-e2e/project.json +++ b/apps/backend-e2e/project.json @@ -9,8 +9,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{e2eProjectRoot}"], "options": { - "jestConfig": "apps/backend-e2e/jest.config.ts", - "passWithNoTests": true + "jestConfig": "apps/backend-e2e/jest.config.ts" } }, "lint": { diff --git a/apps/backend/project.json b/apps/backend/project.json index d566876665..fedb7a5cec 100644 --- a/apps/backend/project.json +++ b/apps/backend/project.json @@ -48,12 +48,10 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/backend/jest.config.ts", - "passWithNoTests": true + "jestConfig": "apps/backend/jest.config.ts" }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/apps/frontend/project.json b/apps/frontend/project.json index 5db4f11f28..47c5b15be2 100644 --- a/apps/frontend/project.json +++ b/apps/frontend/project.json @@ -70,10 +70,10 @@ }, "configurations": { "production": { - "browserTarget": "frontend:build:production" + "buildTarget": "frontend:build:production" }, "development": { - "browserTarget": "frontend:build:development" + "buildTarget": "frontend:build:development" } }, "defaultConfiguration": "development" @@ -89,11 +89,11 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/frontend/jest.config.ts" + "jestConfig": "apps/frontend/jest.config.ts", + "passWithNoTests": false }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/libs/backend/validators/project.json b/libs/backend/validators/project.json index 1e819e251f..236c9f1063 100644 --- a/libs/backend/validators/project.json +++ b/libs/backend/validators/project.json @@ -25,12 +25,10 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/backend/validators/jest.config.ts", - "passWithNoTests": true + "jestConfig": "libs/backend/validators/jest.config.ts" }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/libs/bitflags/project.json b/libs/bitflags/project.json index 8a822b1097..80c1731fde 100644 --- a/libs/bitflags/project.json +++ b/libs/bitflags/project.json @@ -25,12 +25,10 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/bitflags/jest.config.ts", - "passWithNoTests": true + "jestConfig": "libs/bitflags/jest.config.ts" }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/libs/enum/project.json b/libs/enum/project.json index 5da723b93b..176e2363e9 100644 --- a/libs/enum/project.json +++ b/libs/enum/project.json @@ -25,12 +25,10 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/enum/jest.config.ts", - "passWithNoTests": true + "jestConfig": "libs/enum/jest.config.ts" }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/libs/formats/project.json b/libs/formats/project.json index 7cb2477d12..c284a98a70 100644 --- a/libs/formats/project.json +++ b/libs/formats/project.json @@ -24,13 +24,7 @@ "test": { "executor": "@nx/jest:jest", "options": { - "jestConfig": "libs/formats/jest.config.ts", - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true - } + "jestConfig": "libs/formats/jest.config.ts" } } }, diff --git a/libs/frontend/pipes/project.json b/libs/frontend/pipes/project.json index a3a36aa374..2b4d71e6c6 100644 --- a/libs/frontend/pipes/project.json +++ b/libs/frontend/pipes/project.json @@ -10,12 +10,10 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/frontend/pipes/jest.config.ts", - "passWithNoTests": true + "jestConfig": "libs/frontend/pipes/jest.config.ts" }, "configurations": { "ci": { - "ci": true, "codeCoverage": false } } diff --git a/libs/frontend/validators/project.json b/libs/frontend/validators/project.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libs/util-fn/project.json b/libs/util-fn/project.json index c57e7754bf..1306877da8 100644 --- a/libs/util-fn/project.json +++ b/libs/util-fn/project.json @@ -26,14 +26,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/util-fn/jest.config.ts", - "passWithNoTests": true - }, - "configurations": { - "ci": { - "ci": true, - "codeCoverage": true - } + "jestConfig": "libs/util-fn/jest.config.ts" } } }, diff --git a/nx.json b/nx.json index 16a0255742..81daab0255 100644 --- a/nx.json +++ b/nx.json @@ -17,9 +17,6 @@ "dependsOn": ["^build"], "inputs": ["production", "^production"] }, - "test": { - "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] - }, "lint": { "inputs": [ "default", @@ -29,6 +26,18 @@ }, "e2e": { "inputs": ["default", "^production"] + }, + "@nx/jest:jest": { + "cache": true, + "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], + "options": { + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + } + } } }, "namedInputs": {