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(