From 9932454730623c77d75be3e5046d431ae98d0898 Mon Sep 17 00:00:00 2001 From: Chris Raible Date: Wed, 16 Oct 2024 12:15:14 -0700 Subject: [PATCH] Added build:ts dependency to yarn test:unit (#21328) no issue - Running `yarn test:unit` fails unless you've previously run `yarn build:ts`. This change tells `nx` about this dependency, so it will run `yarn build:ts` before `yarn test:unit`. It should take advantage of the nx cache though, so it will only run the `build:ts` task if necessary --- nx.json | 1 + 1 file changed, 1 insertion(+) diff --git a/nx.json b/nx.json index 3e700d12e3..ae3f2ce855 100644 --- a/nx.json +++ b/nx.json @@ -35,6 +35,7 @@ "cache": true }, "test:unit": { + "dependsOn": ["^build:ts"], "cache": true } },