Hello everyone,
What diference between Shallow and Mount render when I test a React component?
Hello everyone,
What diference between Shallow and Mount render when I test a React component?
For further actions, you may consider blocking this person and/or reporting abuse
Just kidding, it's a personal preference. But you can change your theme, font, etc. in your settings.
The more you know. 🌈
Khushang Mirzo -
Johnny Simpson -
griffincodes1 -
olasunkanmi -
Once suspended, eduaugustus will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, eduaugustus will be able to comment and publish posts again.
Once unpublished, all posts by eduaugustus will become hidden and only accessible to themselves.
If eduaugustus is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Eduardo Augusto.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community 👩💻👨💻 safe. Here is what you can do to flag eduaugustus:
Unflagging eduaugustus will restore default visibility to their posts.
Top comments (2)
Shallow only mounts the component and "mocks" the rendered output of it's children. Mount renders the entire component tree. You can print
wrapper.debug()
to see the difference clearly.Using shallow your tests run much faster, and are less prone to side effects, so the general rule of thumb is that you should always use Shallow, unless you need Mount.
Thks Dor :D