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

[feature] cwd option #30

Merged
merged 5 commits into from
Feb 3, 2023
Merged

[feature] cwd option #30

merged 5 commits into from
Feb 3, 2023

Conversation

KostiantynPopovych
Copy link
Contributor

This PR is adding an ability to specify the path where the check should be performed.

Copy link
Contributor

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

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

@KostiantynPopovych This looks very interesting. Just had one question in the tests you added.

describe('cwd option', () => {
it('possible to perform the check in the existing directory passing a relative path', async () => {
const checkResult = await depngn({ version: '18.0.0', cwd: '.' });
expect(checkResult).not.toBeNull();
Copy link
Contributor

Choose a reason for hiding this comment

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

@KostiantynPopovych Can we actually expect something a bit more specific? This is the same expectation as specified in the next test case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@etagwerker, thank you for reviewing! And it is a great point. I'll take a look at what we can expect here)

Copy link
Contributor

Choose a reason for hiding this comment

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

@KostiantynPopovych sounds good. Did you get a chance to improve this part?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@etagwerker just pushed my update, thank you.

Copy link
Contributor

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

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

@KostiantynPopovych looks good, thanks!

@etagwerker etagwerker merged commit 784a096 into main Feb 3, 2023
@etagwerker etagwerker deleted the feature/cwd branch February 3, 2023 19:01
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.

2 participants