fix(testing): make sure new tsconfig exists before adding ref (#17147)

This commit is contained in:
Caleb Ukle 2023-05-25 10:36:21 -05:00 committed by GitHub
parent be2ccb802e
commit 15ea10ef71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(