From 15ea10ef711f085f96124e44f5cb15dcb93fc075 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Thu, 25 May 2023 10:36:21 -0500 Subject: [PATCH] fix(testing): make sure new tsconfig exists before adding ref (#17147) --- .../src/migrations/update-16-2-0/update-cy-tsconfig.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cypress/src/migrations/update-16-2-0/update-cy-tsconfig.ts b/packages/cypress/src/migrations/update-16-2-0/update-cy-tsconfig.ts index bfbec6f8eb..21c4b091f5 100644 --- a/packages/cypress/src/migrations/update-16-2-0/update-cy-tsconfig.ts +++ b/packages/cypress/src/migrations/update-16-2-0/update-cy-tsconfig.ts @@ -92,7 +92,11 @@ function updateCyDirTsConfigReferences( tree: Tree, projectConfig: ProjectConfiguration ) { - if (!tree.exists(joinPathFragments(projectConfig.root, 'cypress'))) { + if ( + !tree.exists( + joinPathFragments(projectConfig.root, 'cypress', 'tsconfig.json') + ) + ) { return; } updateJson(