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
[typescript] Dependency on enzyme
should be abstracted
#7929
Comments
I guess the question is how many people have installed Because the Also, you don't need to install |
Honestly, I'm no longer sure that we should be keeping exposing the |
👍 |
Sounds good. Will not including the |
@sebald I guess. But most of the work is going to be updating the docs. |
I do if I want to use your |
Oh, so you do think that this testing helpers functions can be beneficial to our users? |
@oliviertassinari Me? No, I do really like them. The @shousper why do you have issues with the additional dependency of |
@sebald Sorry, I meant that in the non-direct sense. i.e. if I were someone wanting to use some test utilities specifically for material-ui, I'd have to also use enzyme. But I don't mean me specifically :) |
Alright, I'm going to close the issue. To sum up:
Thanks for the discussion, we can always reopen the issue if you don't agree, or want to push into a different direction. |
Problem description
The typings contain a dependency on
enzyme
that would require anyone usingmaterial-ui
withtypescript
to also install@types/enzyme
, and alsoenzyme
for testing.Steps to reproduce
N/A
Versions
Description
I would like to suggest the testing utils specific to
enzyme
be moved into another package (e.g.material-ui-enzyme
). Any testing utilities that come withmaterial-ui
should probably only depend on React itself so as to leave developers the freedom of choice with it comes to testing.Images & references
N/A
The text was updated successfully, but these errors were encountered: