From 111eb81c602da579bc5c875db97db5c4011e4986 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Mon, 22 May 2023 10:27:43 -0500 Subject: [PATCH] fix(testing): make sure new tsconfig exists before adding ref --- .../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 bfbec6f8eb0c0..21c4b091f599a 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(