Skip to content

mehrdad-shokri/enzyme-sel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 instead.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%