From 8a3e9af5323af0a4a2c83f52d5ade3d9e76d2081 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 29 Jun 2020 10:23:23 -0700 Subject: [PATCH] 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. --- types/testing-library__vue/testing-library__vue-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/testing-library__vue/testing-library__vue-tests.ts b/types/testing-library__vue/testing-library__vue-tests.ts index 6a479a116a47dea..76f78bbabe366fc 100644 --- a/types/testing-library__vue/testing-library__vue-tests.ts +++ b/types/testing-library__vue/testing-library__vue-tests.ts @@ -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 lib.waitForElement(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise -lib.waitForElementToBeRemoved(() => input); // $ExpectType Promise -lib.waitForElementToBeRemoved(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise +lib.waitForElementToBeRemoved(() => input); // $ExpectType Promise +lib.waitForElementToBeRemoved(() => option, {container: select, timeout: 3000, mutationObserverOptions: {subtree: false}}); // $ExpectType Promise // Reexports utilities from dom-testing-library lib.buildQueries((el: HTMLElement) => [el], (_: HTMLElement) => "something", (_: HTMLElement) => "error");