(node, opts)
| 23 | // we need to unmount the dropdown after every test to ensure all event listeners are cleaned up |
| 24 | // wrap the render methods to update a global wrapper that is unmounted after each test |
| 25 | const wrapperMount = (node, opts) => { |
| 26 | attachTo = document.createElement('div') |
| 27 | document.body.appendChild(attachTo) |
| 28 | |
| 29 | wrapper = mount(node, { ...opts, attachTo }) |
| 30 | return wrapper |
| 31 | } |
| 32 | const wrapperShallow = (...args) => (wrapper = shallow(...args)) |
| 33 | const wrapperRender = (...args) => (wrapper = render(...args)) |
| 34 |
no outgoing calls
no test coverage detected
searching dependent graphs…