Skip to content
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

update jest, jest-styled-components, babel-jest #378

Merged
merged 3 commits into from
Sep 17, 2018
Merged

Conversation

guyfedwards
Copy link
Contributor

jest@23.6.0
jest-styled-componetns@6.2.0
babel-jest@23.6.0

prerequisite for #372

jest@23.6.0
jest-styled-componetns@6.2.0
babel-jest@23.6.0

prerequisite for #372
@guyfedwards guyfedwards requested a review from fbarl September 14, 2018 11:37
Error message is much harded to track down when not using prop-types.
We have linting to pick up on these and should rely on runtime errors.
Copy link
Contributor

@foot foot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything still works 👍

src/components/Search/Search.js Outdated Show resolved Hide resolved
@@ -221,7 +222,7 @@ Search.propTypes = {
* Handler that runs when an item from the search filter dropdown is selected
* Returns the selected filter value.
*/
onFilterSelect: PropTypes.func.isRequired,
onFilterSelect: requiredIf(PropTypes.func, props => props.filters),

This comment was marked as abuse.

This comment was marked as abuse.

onFilterSelect shouold only be required if props.filters is supplied
adding react-required-if solves this.
@guyfedwards guyfedwards merged commit 7ce00be into master Sep 17, 2018
@guyfedwards guyfedwards deleted the jest-update branch September 17, 2018 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants