cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Unable to change the source root

Open kpayson opened this issue 3 years ago • 0 comments

Current behavior

There is an error opening cypress component testing if the source root folder is not called "src"

In my case the "src" folder is named "ui" The sourceRoot folder setting is updated in angular.json to reflect the folder name.

"root": "", "sourceRoot": "ui", "prefix": "app",

When I open cypress and go to component testing, I get the following error. I can reproduce this on a brnad new angular application.

image

Desired behavior

No response

Test code to reproduce

Brand new angular app.

Change name of "src" folder to "ui"

update angular.json sourceRoot setting

open cypress

goto component tests

Cypress Version

11.2.0

Node version

16.15.0

Operating System

macOS 12.5.1

Debug Logs

No response

Other

No response

kpayson avatar Nov 27 '22 17:11 kpayson