fix(testing): make sure new tsconfig exists before adding ref (#17147)
This commit is contained in:
parent
be2ccb802e
commit
15ea10ef71
@ -92,7 +92,11 @@ function updateCyDirTsConfigReferences(
|
|||||||
tree: Tree,
|
tree: Tree,
|
||||||
projectConfig: ProjectConfiguration
|
projectConfig: ProjectConfiguration
|
||||||
) {
|
) {
|
||||||
if (!tree.exists(joinPathFragments(projectConfig.root, 'cypress'))) {
|
if (
|
||||||
|
!tree.exists(
|
||||||
|
joinPathFragments(projectConfig.root, 'cypress', 'tsconfig.json')
|
||||||
|
)
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
updateJson(
|
updateJson(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user