react-testing-library
Version:
Simple and complete React DOM testing utilities that encourage good testing practices.
11 lines (8 loc) • 308 B
JavaScript
// this is where we'll put bug reproductions/regressions
// to make sure we never see them again
import React from 'react'
import {render, cleanup} from '../'
test('cleanup does not error when an element is not a child', () => {
render(<div />, {container: document.createElement('div')})
cleanup()
})