-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
tests(mixed): remove usage of meta.props
#1239
Conversation
…React into chore/update-tests # Conflicts: # test/specs/collections/Grid/GridRow-test.js
@levithomason Any ideas why tests are failed on CI?
|
…m/Semantic-Org/Semantic-UI-React into chore/update-tests # Conflicts: # test/specs/elements/Button/ButtonGroup-test.js
Codecov Report
@@ Coverage Diff @@
## master #1239 +/- ##
=======================================
Coverage 99.75% 99.75%
=======================================
Files 140 140
Lines 2402 2402
=======================================
Hits 2396 2396
Misses 6 6 Continue to review full report at Codecov.
|
I've rebased to |
I've marked this issue and will take a look soon as I can. |
I'll rebase to |
…React into chore/update-tests # Conflicts: # test/specs/elements/List/ListContent-test.js # test/specs/modules/Popup/Popup-test.js
I've rebased, but, |
Looking... |
I'm making PR for |
Okay, problem is solved, need to rebase it 😄 |
We need merge #1322 before this. |
…React into chore/update-tests # Conflicts: # test/specs/modules/Popup/Popup-test.js # test/specs/modules/Sidebar/Sidebar-test.js # test/specs/views/Card/CardGroup-test.js
const { className = propKey, requiredProps = {} } = options | ||
// required props may include a prop that creates a className | ||
// if so, we cannot assert that it doesn't exist by default because it is required to exist | ||
// skip assertions for required props | ||
if (propKey in defaultProps) return |
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.
I've rebased, but tests failed on Sidebar
, it has defaultProps
for direction
. So, I think it's expected behaviour there.
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.
Whew, great work here! Very appreciative of you sticking to this and seeing it all the way through.
Released in |
* tests(mixed): remove usage of `meta.props` * tests(mixed): fix lint issues * tests(mixed): some fixes * fix(Grid): fix test * fix(Button): update ButtonGroup's test * fix(tests): add default props
This PR completely removes usage of
meta.props
from tests.