MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / CleanupTest

Function CleanupTest

src/test/tooltip-edge-cases.spec.js:182–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 test('tooltip handles event cleanup on unmount', () => {
181 // Create a component that we'll unmount
182 const CleanupTest = () => {
183 return (
184 <div>
185 <span data-tooltip-id="cleanup-test">Hover Me</span>
186 <TooltipController id="cleanup-test" content="Cleanup Test" />
187 </div>
188 )
189 }
190
191 // Render the component
192 const { unmount } = render(<CleanupTest />)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected