Skip to content

Unable to change the source root #24827

@kpayson

Description

@kpayson

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

Metadata

Metadata

Assignees

Labels

CTIssue related to component testing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions