(...args)
| 34 | test('works great with react portals', () => { |
| 35 | class MyPortal extends React.Component { |
| 36 | constructor(...args) { |
| 37 | super(...args) |
| 38 | this.portalNode = document.createElement('div') |
| 39 | this.portalNode.dataset.testid = 'my-portal' |
| 40 | } |
| 41 | componentDidMount() { |
| 42 | document.body.appendChild(this.portalNode) |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected