MCPcopy Create free account
hub / github.com/reactjs/react-modal / registerTestComponent

Function registerTestComponent

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

Source from the content-addressed store, hash-verified

135 }
136
137 const registerTestComponent = () => {
138 if (window.customElements.get("test-web-component")) {
139 return;
140 }
141 window.customElements.define("test-web-component", TestWebComponent);
142 };
143
144 beforeEach(() => {
145 registerTestComponent();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected