Skip to content

Commit e8fbef5

Browse files
author
Kent C. Dodds
authored
feat(waitForElement): add export of waitForElement
1 parent 40dfcde commit e8fbef5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/index.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ReactDOM from 'react-dom'
22
import {Simulate} from 'react-dom/test-utils'
3-
import {bindElementToQueries, wait, fireEvent} from 'dom-testing-library'
3+
import {bindElementToQueries, wait, fireEvent, waitForElement} from 'dom-testing-library'
44

55
function render(ui, {container = document.createElement('div')} = {}) {
66
ReactDOM.render(ui, container)
@@ -35,4 +35,12 @@ syntheticEvents.forEach(eventName => {
3535
})
3636
})
3737

38-
export {render, Simulate, wait, fireEvent, renderIntoDocument, cleanup}
38+
export {
39+
render,
40+
Simulate,
41+
wait,
42+
waitForElement,
43+
fireEvent,
44+
renderIntoDocument,
45+
cleanup,
46+
}

0 commit comments

Comments
 (0)