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

Use parse from node:path to parse cwd #24

Merged
merged 1 commit into from
Dec 24, 2022

Conversation

nivekithan
Copy link
Contributor

To get libray name for which we are running test against, this is the code we are using

const library = process.cwd().split("/").slice(-1)[0].replace("-stub", "");
console.log(`Running Cypress integration tests for library: ${library}`);

This would not work when we are running test in windows. Since the filepath delimiters in windows are "" not "/".

This causes to cypress test fail

Before
image

After
image

To fix these we use parse from node:path to parse the cwd

@brophdawg11 brophdawg11 merged commit 93d9a72 into brophdawg11:main Dec 24, 2022
@brophdawg11
Copy link
Owner

Thanks!

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.

None yet

2 participants