-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
There was a problem hiding this 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.
tests/engine/cwd-option.spec.ts
Outdated
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(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
This PR is adding an ability to specify the path where the check should be performed.