Skip to content

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