From 0f455bbfa8835b52ff02dc2427f6fcee50ede545 Mon Sep 17 00:00:00 2001 From: Younes Jaaidi Date: Tue, 8 Oct 2024 14:15:45 +0200 Subject: [PATCH] =?UTF-8?q?test:=20=E2=9C=85=20invalidate=20cache=20when?= =?UTF-8?q?=20users=20override=20playwright=20env=20vars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nx.json | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/nx.json b/nx.json index 458918f5..63b93568 100644 --- a/nx.json +++ b/nx.json @@ -57,28 +57,26 @@ }, "targetDefaults": { "build": { - "dependsOn": [ - "^build" - ], - "inputs": [ - "production", - "^production" - ], + "dependsOn": ["^build"], + "inputs": ["production", "^production"], "cache": true }, "component-test": { - "inputs": [ - "default", - "^production" - ], + "inputs": ["default", "^production"], "cache": true }, - "@nx/jest:jest": { + "test-ui": { "inputs": [ "default", "^production", - "{workspaceRoot}/jest.preset.js" + { + "runtime": "env | grep PW" + } ], + "cache": true + }, + "@nx/jest:jest": { + "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], "cache": true, "options": { "passWithNoTests": true @@ -91,18 +89,12 @@ } }, "@nx/eslint:lint": { - "inputs": [ - "default", - "{workspaceRoot}/.eslintrc.json" - ], + "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], "cache": true } }, "namedInputs": { - "default": [ - "{projectRoot}/**/*", - "sharedGlobals" - ], + "default": ["{projectRoot}/**/*", "sharedGlobals"], "sharedGlobals": [], "production": [ "default",