baruchvlz / resq

React Element Selector Query (RESQ) - Query React components and children by component name or HTML selector
MIT License
174 stars 27 forks source link

fix: strip component name from HOCs. add types (wip) #48

Closed baruchvlz closed 4 years ago

baruchvlz commented 4 years ago

43

This PR is a quick fix for selecting components with HoCs.

It might introduce breaking changes if the user is selecting wrapped components with their HoC name.

resq$('someWrapper(anotherHoc(MyComponent))') // doesn't work
resq$('MyComponent') // works
codecov[bot] commented 4 years ago

Codecov Report

Merging #48 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #48   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines         137    143    +6     
  Branches       35     37    +2     
=====================================
+ Hits          137    143    +6
Impacted Files Coverage Δ
src/utils.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3644106...dba6b81. Read the comment docs.