mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
update tests for @testing-library/vue, from dom (#45782)
waitForElementToBeRemoved had the wrong return type, and it got fixed in https://github.com/testing-library/dom-testing-library/pull/631 This PR updates @testing-library/vue, which depends on @testing-library/dom.
This commit is contained in:
parent
2f1ac31347
commit
31c9fb1e93
@ -132,8 +132,8 @@ lib.wait(() => { throw new Error("nope"); }, {timeout: 3000, interval: 100});
|
||||
lib.waitForDomChange({container: select, timeout: 3000, mutationObserverOptions: {subtree: false}});
|
||||
lib.waitForElement(() => input); // $ExpectType Promise<HTMLInputElement>
|
||||
lib.waitForElement(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise<HTMLOptionElement>
|
||||
lib.waitForElementToBeRemoved(() => input); // $ExpectType Promise<HTMLInputElement>
|
||||
lib.waitForElementToBeRemoved(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise<HTMLOptionElement>
|
||||
lib.waitForElementToBeRemoved(() => input); // $ExpectType Promise<void>
|
||||
lib.waitForElementToBeRemoved(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise<void>
|
||||
|
||||
// Reexports utilities from dom-testing-library
|
||||
lib.buildQueries((el: HTMLElement) => [el], (_: HTMLElement) => "something", (_: HTMLElement) => "error");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user