Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kentcdodds/enzyme-sel


https://github.com/kentcdodds/enzyme-sel

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# how to use enzyme to find only DOM component wrappers

I'm not sure how to do this. I don't want to get composite component wrappers,
I only want to get DOM component wrappers. What API can I use? `find` is
returning both.

## EDIT

Found a solution and updated the code. Have to use `.hostNodes()` to filter out
all non-DOM component wrappers.

## BIGGER EDIT

Check out [React Testing Library](https://testing-library.com/react) instead.