Skip to content

Commit

Permalink
feat(waitForElement): add export of waitForElement
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds authored Apr 27, 2018
1 parent 40dfcde commit e8fbef5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from 'react-dom'
import {Simulate} from 'react-dom/test-utils'
import {bindElementToQueries, wait, fireEvent} from 'dom-testing-library'
import {bindElementToQueries, wait, fireEvent, waitForElement} from 'dom-testing-library'

function render(ui, {container = document.createElement('div')} = {}) {
ReactDOM.render(ui, container)
Expand Down Expand Up @@ -35,4 +35,12 @@ syntheticEvents.forEach(eventName => {
})
})

export {render, Simulate, wait, fireEvent, renderIntoDocument, cleanup}
export {
render,
Simulate,
wait,
waitForElement,
fireEvent,
renderIntoDocument,
cleanup,
}

0 comments on commit e8fbef5

Please sign in to comment.