Skip to content

Commit 9e480fa

Browse files
authored
Add Loggable to accepted options of commands since it works at runtime (#181)
1 parent 677a0c5 commit 9e480fa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

types/index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import {
99
SelectorMatcherOptions as DTLSelectorMatcherOptions,
1010
} from '@testing-library/dom'
1111

12-
export interface CTLMatcherOptions {
13-
timeout?: number
12+
export interface CTLMatcherOptions
13+
extends Partial<Cypress.Timeoutable>,
14+
Partial<Cypress.Loggable> {
1415
container?: Element | JQuery<Element>
1516
}
1617

@@ -223,7 +224,10 @@ declare global {
223224
* @see https://github.com/testing-library/cypress-testing-library#usage
224225
* @see https://github.com/testing-library/dom-testing-library#table-of-contents
225226
*/
226-
findAllByRole(id: ByRoleMatcher, options?: ByRoleOptions): Chainable<JQuery>
227+
findAllByRole(
228+
id: ByRoleMatcher,
229+
options?: ByRoleOptions,
230+
): Chainable<JQuery>
227231

228232
/**
229233
* dom-testing-library helpers for Cypress

0 commit comments

Comments
 (0)