-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix: prettierPath not working via config file #7412
Fix: prettierPath not working via config file #7412
Conversation
@@ -425,7 +425,7 @@ export const options = { | |||
type: 'string', | |||
}, | |||
prettierPath: { | |||
default: 'prettier', | |||
default: undefined, |
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 this still default to 'prettier'
?
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. It picks the value from the default config. https://github.com/facebook/jest/blob/master/packages/jest-config/src/Defaults.js#L55
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
* removed default value of prettierPath from argv * updated snapshot for show_config * updated changelog * fixed wrong package name in changelog
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #7406 by setting default value of
prettierPath
toundefined
in argv. Also addedprettierPath
key toArgv
type.Test plan
Updated snapshots