-
Notifications
You must be signed in to change notification settings - Fork 274
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
Mock stdline and errline #462
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.
Thanks for improving ToolRunner mocking.
node/test/mocktests.ts
Outdated
}) | ||
|
||
it('Mock toolRunner returns correct output', async () => { | ||
const expectedStdout = "atool output here" + os.EOL + "abc" + os.EOL + "junk"; |
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.
Wouldn't/shouldn't the real task runner emit a 'stdline' event for "junk"?
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.
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.
Yes, and it does on close. Sorry, looks like my brain didn't quite get going this morning :)
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.
Should actually be fixed now
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.
LGTM. Thanks again!
Is this change alone worthy of bumping the version number and publishing to the npm registry? |
I think this probably warrants a patch update. @bryanmacfarlane can we publish? |
* Mock stdline and errline * Responsd to feedback * Fix issue with displaying extra line * Don't ignore last line * Bump patch version
Based off of #234 which was closed due to inactivity.
Fixes #227.