MCPcopy
hub / github.com/reactjs/react-modal / registerTestComponent

Function registerTestComponent

specs/Modal.helpers.spec.js:158–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }
157
158 const registerTestComponent = () => {
159 if (window.customElements.get("test-web-component")) {
160 return;
161 }
162 window.customElements.define("test-web-component", TestWebComponent);
163 };
164
165 beforeEach(() => {
166 registerTestComponent();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…