MCPcopy
hub / github.com/bvaughn/react-virtualized / render

Function render

source/TestUtils.js:8–19  ·  view source on GitHub ↗
(markup)

Source from the content-addressed store, hash-verified

6 * Note that rendering twice within the same test method will update the same element (rather than recreate it).
7 */
8export function render(markup) {
9 if (!render._mountNode) {
10 render._mountNode = document.createElement('div');
11
12 // Unless we attach the mount-node to body, getBoundingClientRect() won't work
13 document.body.appendChild(render._mountNode);
14
15 afterEach(render.unmount);
16 }
17
18 return ReactDOM.render(markup, render._mountNode);
19}
20
21/**
22 * The render() method auto-unmounts components after each test has completed.

Callers 15

List.jest.jsFile · 0.90
Masonry.jest.jsFile · 0.90
ScrollSync.jest.jsFile · 0.90
Table.jest.jsFile · 0.90
renderHelperFunction · 0.90
renderHelperFunction · 0.90
MultiGrid.jest.jsFile · 0.90
Grid.jest.jsFile · 0.90
Collection.jest.jsFile · 0.90
helperFunction · 0.90

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…