Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--spec option should be normalized against cwd and not projectRoot #1159

Closed
brian-mann opened this issue Jan 6, 2018 · 2 comments
Closed
Assignees
Labels
cli type: unexpected behavior User expected result, but got another
Milestone

Comments

@brian-mann
Copy link
Member

When invoking cypress from a PWD other than the current projectRoot and using a relative path - it will fail to find the spec file because we resolve the path using projectRoot instead of process.cwd

This behavior needs to move into the cli so it normalizes specs to absolute paths prior to handing them off.

@brian-mann brian-mann added the type: unexpected behavior User expected result, but got another label Jan 6, 2018
@brian-mann brian-mann self-assigned this Jan 6, 2018
@bahmutov
Copy link
Contributor

bahmutov commented Jan 6, 2018 via email

brian-mann added a commit that referenced this issue Jan 8, 2018
…nst cwd

- projectPath is now normalized against cwd as well
brian-mann added a commit that referenced this issue Feb 5, 2018
…nst cwd

- projectPath is now normalized against cwd as well
@brian-mann brian-mann added this to the 2.0.0 milestone Feb 16, 2018
@brian-mann
Copy link
Member Author

Released in 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli type: unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

3 participants