Skip to content

Update logic for isCypressProjDirValid to handle windows path #87

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

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

nagpalkaran95
Copy link
Collaborator

@nagpalkaran95 nagpalkaran95 commented Nov 5, 2020

  • Fix for handling windows path in integrationFolder in cypress.json

it('should return true when cypressProjDir and integrationFoldDir is same', () => {
expect(utils.isCypressProjDirValid('/absolute/path', '/absolute/path')).to.be.true;

// should be as below for windows but path.resolve thinks windows path as a filename when run on linux/mac
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's the case , do we need to comment this and add one more expect ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for future use if we detect the platform is win32

it('should return true when cypressProjDir and integrationFoldDir is same', () => {
expect(utils.isCypressProjDirValid('/absolute/path', '/absolute/path')).to.be.true;

// should be as below for windows but path.resolve thinks windows path as a filename when run on linux/mac
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for future use if we detect the platform is win32

@prateekbstack
Copy link
Collaborator

LGTM

@suryart suryart merged commit bd35f64 into master Nov 9, 2020
@suryart suryart deleted the CYP_530_path_resolve branch November 9, 2020 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants