Closed mariusandra closed 3 years ago
Merging #40 into master will decrease coverage by
2.70%
. The diff coverage is92.59%
.
@@ Coverage Diff @@
## master #40 +/- ##
===========================================
- Coverage 100.00% 97.29% -2.71%
===========================================
Files 1 1
Lines 61 74 +13
===========================================
+ Hits 61 72 +11
- Misses 0 2 +2
Impacted Files | Coverage Δ | |
---|---|---|
src/querySelectorDeep.js | 97.29% <92.59%> (-2.71%) |
:arrow_down: |
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 2983aee...83b202f. Read the comment docs.
Thanks for the pr much appreciated I'll try to find some time to understand and review soon. Please could you look at why test coverage has lowered
The coverage was at 100% I may have lowered it by mistake I'll look at that soon but that's what would be ideal
Released in 0.8.0, thank you!
This PR adds two features that I needed:
It's now possible to select inside shadow roots when a selector has
">"
in it. E.g.div > custom-element > div > div
. Previously each part with ">" was treated as one selector that was passed todocument.querySelectorAll("div>custom-element>div>div")
.I exported the
collectAllElementsDeep
function to speed up repetitive lookups.I have added tests for both features.