Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Migrate enzyme to testing library #586
Migrate enzyme to testing library #586
Changes from 63 commits
08b1a65
9b16899
943f105
f71a8cb
305230b
df47bb0
a9643cf
46fe18e
7a1a23e
37dffab
0657a87
605072d
6e7e647
f3ffe10
4db55ea
ca49de6
c81e249
c69b700
fef7199
4359649
a99338f
0c4d1e6
54228c2
e846098
db3c8d7
56e6d66
70f33f6
9839116
ac42846
63738dd
01e41e9
f006f4e
b6306df
dac1b9d
143aba0
455998c
d9406c2
7eec13e
8ecd5fb
cf5587f
ce8827b
1177fde
4c0a212
a55ca33
d0a2b15
23af73d
840fe5f
1e7684f
00fcbe7
4d9272e
86ba4fe
065073d
cc6c923
c1b9ff9
cc26270
20b5e67
0e39746
e8cff67
cd2541a
2fdbfca
e02d1cc
b5ebff7
65fb434
ec062bb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 isn't possible to test without changing the markup of the component. If this situation does occur, we'll get an error on
undefined.querySelectorAll('[role="tab"]'))
.However, it still feels good to me to have this guard in a recursive function? Let me know if you think we should remove it outright
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 was only called in
sortable-table
, whose prop types require children. We were getting a flag for missing a branch here, but in reality this isn't a valid use of this util.