You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{render,waitFor}from'@testing-library/dom';async()=>{render(<SomeComponent/>);// `wait` without callback is replaced with `waitFor` with empty callbackawaitwaitFor(()=>{});// `wait` with some callback is replaced with `waitFor` keeping same callbackawaitwaitFor(()=>expect(screen.getByText('submit')).not.toBeInTheDocument());// same for `waitForElement`awaitwaitFor(()=>{});// same for `waitForDomChange`awaitwaitFor(()=>{});// `waitForDomChange` options are passed as 2nd arg to `waitFor`awaitwaitFor(()=>{},{timeout: 100});};
BREAKING CHANGES
drop support for node v8. Min version allowed is node v10.12 (#96)
rule no-get-by-for-checking-element-not-present removed in favor of new rule prefer-presence-queries (#98)