From 257869498a42cba1b2023639c48934b82897081a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 1 Apr 2021 12:23:23 +0200 Subject: [PATCH] Add Loggable to accepted options of commands since it works at runtime --- types/index.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index c53b1de..dd0bfd6 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -9,8 +9,9 @@ import { SelectorMatcherOptions as DTLSelectorMatcherOptions, } from '@testing-library/dom' -export interface CTLMatcherOptions { - timeout?: number +export interface CTLMatcherOptions + extends Partial, + Partial { container?: Element | JQuery } @@ -223,7 +224,10 @@ declare global { * @see https://github.com/testing-library/cypress-testing-library#usage * @see https://github.com/testing-library/dom-testing-library#table-of-contents */ - findAllByRole(id: ByRoleMatcher, options?: ByRoleOptions): Chainable + findAllByRole( + id: ByRoleMatcher, + options?: ByRoleOptions, + ): Chainable /** * dom-testing-library helpers for Cypress