• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

infernojs / inferno / 7173 / 1
100%
master: 93%

Build:
Build:
LAST BUILD BRANCH: update-path-to-regexp
DEFAULT BRANCH: master
Ran 13 Oct 2018 12:18PM UTC
Files 83
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Oct 2018 12:05PM UTC coverage: 94.875% (-0.02%) from 94.892%
7173.1

push

travis-ci

Havunen
inferno-clone-vnode doesn't include children in cloned node (#1394)

Fixes #1393.

inferno-clone-vnode does not currently clone existing children of a
vnode. Instead, we are required to specify the children to include.
While this works, it seems redundant and does not behave in the same
way as React.

This patch will allow the children of a node to automatically be cloned if no children
props are specified in the second parameter and no children are
specified in the third parameter. Furthermore, this patch will flatten
the list of children. This will allow all children to be accounted for.
For example:

```
const itemList = [{name: 'a'}, {name: 'b'}];
<Wrapper>
    <StaticItem1 />
    <StaticItem2 />
    {itemList.map(x => <StaticItem name={x.name} />)}
</Wrapper>
```

Signed-off-by: Will Johnson <wjohnson@whamcloud.com>

2300 of 2679 branches covered (85.85%)

3517 of 3707 relevant lines covered (94.87%)

1880.63 hits per line

Source Files on job 7173.1
  • Tree
  • List 0
  • Changed 14
  • Source Changed 2
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6941
  • Travis Job 7173.1
  • efb213ee on github
  • Prev Job for on dev (#7172.1)
  • Next Job for on dev (#7174.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc