Skip to content

Commit 19c9ebd

Browse files
committed
refactor: derive configuration options type for Testing Library types
1 parent 1e75b4e commit 19c9ebd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/typedefs.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
Matcher,
33
ByRoleOptions as TestingLibraryByRoleOptions,
4+
Config as TestingLibraryConfig,
45
MatcherOptions as TestingLibraryMatcherOptions,
56
SelectorMatcherOptions as TestingLibrarySelectorMatcherOptions,
67
waitForOptions,
@@ -189,6 +190,4 @@ export interface Queries extends QueryMethods {
189190
getNodeText(el: Element): Promise<string>
190191
}
191192

192-
export interface ConfigurationOptions {
193-
testIdAttribute: string
194-
}
193+
export type ConfigurationOptions = Pick<TestingLibraryConfig, 'testIdAttribute'>

0 commit comments

Comments
 (0)