-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(open): rdme open
should have a flag for opening the dash
#671
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.
A couple small suggestions, but this is looking great!
return expect(cmd.run({ mockOpen, dash: true, key: '12345' })).resolves.toBe( | ||
`Opening ${chalk.green(dashUrl)} in your browser...` | ||
); | ||
mockRequest.done(); |
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.
@kanadgupta @darrenyong This line doesn't get called because it's after a return
. This might end up leading to some test memory leaks with mocks not getting cleaned up.
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.
oops, great catch, thanks! will fix
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.
wish we had a lint rule for stuff like this
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.
Yeah I'm surprised that ESLint didn't pick up on it.
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.
oops, thanks Jon!
🧰 Changes
We're adding a
--dash
option tordme open
so that it'll open the project dashboard in the browser.🧬 QA & Testing