-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Removed yargs default for reporters so the ones defined in are taken first #185
Conversation
wouldn't this approach make it so that it's impossible to override the reporter:
the goal is a solution that uses the reporter defined in |
Yeah, you're right... |
7b4c680
to
d5a9d0e
Compare
Went a bit up and removed the yargs' default for reporters since it is set here when none provided. Seems to work both ways. |
@rapzo I dug into this a bit more, there's a slightly better solution that allows us to continue having a default value: .option('reporter', {
alias: 'r',
describe: 'coverage reporter(s) to use',
global: true
}) there appears to be a bug with yargs, which is taking into account aliases when loading defaults from the I'd happily land this patch, but we should also dig into this bug in yargs. |
d5a9d0e
to
75e76ae
Compare
Sorry for the delay. Here's the patch. A better solution indeed. |
Removed yargs default for reporters so the ones defined in are taken first
@rapzo give this a shot, shipped with your fixes for package configuration:
If everything is looking good I'll promote the change to |
I will! Thanks man! |
As pointed in issue #184.