glenjamin / glenjamin/skin-deep

Doesn't work if you return an array from a render method

Open
#96 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
198
Forks
35
PR merge metrics
No merged PRs in 30d

Description

If I do some code that has:

`return [

a
,
b
]`

and use `tree.subTree('.test')` it won't find the div, however

`return (

a
,
b
)`

works fine.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the array and nested-element examples from the report, then inspect the subTree lookup path and how it handles rendered arrays. Done means subTree('.test') finds the div in the array case while the existing nested-element behavior continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.