enzymejs / enzymejs/enzyme

Full tree rendering without a DOM

Open
#249 4 comments 9 reactions 0 assignees View on GitHub
enhancement feature request
Dominant language
JavaScript
Stars
19.8k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

We could implement a renderer that was like shallow in terms of lifecycle, and never actually attached to the DOM, but unlike shallow - rendered all the way down to leaf nodes:

```
function B(props) {
return (


B

{props.children}

);
}
function A(props) {
return (

A

{this.props.children}

);
}
const wrapper = renderFull(Root);
wrapper.debug();
```

would output:

```



B

A

Root



```

(with a better name than `renderFull` of course)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.