Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentcdodds/enzyme-sel
https://github.com/kentcdodds/enzyme-sel
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kentcdodds/enzyme-sel
- Owner: kentcdodds
- Created: 2018-01-05T17:25:57.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-01-25T23:13:32.000Z (over 3 years ago)
- Last Synced: 2024-07-05T07:38:05.156Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.