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: show derived configuration #517
base: main
Are you sure you want to change the base?
Conversation
Saw a few nit picks. I might be able to refactor this patch to use fewer files, by naming the snapshots in the test cases. WIP. |
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
b1bffb3
to
e1969b0
Compare
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
e1969b0
to
a09fd9d
Compare
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
a09fd9d
to
32dd6af
Compare
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.
Looks like a useful addition to functionality to me, I would change the PR title to:
feat: show derived configuration
Thanks @bcoe. I will make the changes above and have a new commit in the next week. |
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 12 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
feat: print derived config variables feat: print derived config variables in json test: 16 new unit tests to support features test: 1 skipped unit test for discovered bug in yargs with reports param
32dd6af
to
b33e8e7
Compare
@bcoe, Please review again. |
console.log(jsonYargs) | ||
} | ||
|
||
// DO NOT REMOVE! This is intentional. |
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.
Could you expand on the comment to explain why this process.exit()
is necessary?
Why is this process.exit()
necessary?
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.
The reason for this process.exit()
is that it stops c8 from producing a coverage report after showing the configuration report. Additionally, this logic allows JSON to be also printed, and possibly consumed by another process.
@bcoe can you anticipate any use cases where a configuration report and coverage report are necessary?
/** | ||
* Function: runSpawn | ||
* | ||
* @param {String} cmd: A string representing the prompt command |
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.
This seems like quite a bit of test helper logic being introduced for the size of the feature.
Could we get away with simply using a regex assertion and testing against some of the expected output?
Pull Request 517
Commit Message
commit b33e8e7
Author: Trevor D McKeown tmckeown@gmail.com
Date: Sun Feb 18 09:17:58 2024 -0500
Following the Contributions Recommendations here.