MCPcopy Create free account
hub / github.com/testing-library/react-testing-library /

Class

src/__tests__/cleanup.js:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 const divId = 'my-div'
7
8 class Test extends React.Component {
9 componentWillUnmount() {
10 expect(document.getElementById(divId)).toBeInTheDocument()
11 spy()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected