Skip to content

Commit

Permalink
refactor: derive configuration options type for Testing Library types
Browse files Browse the repository at this point in the history
  • Loading branch information
jrolfs committed Sep 18, 2022
1 parent 9ca0808 commit b9c1937
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/typedefs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Matcher,
ByRoleOptions as TestingLibraryByRoleOptions,
Config as TestingLibraryConfig,
MatcherOptions as TestingLibraryMatcherOptions,
SelectorMatcherOptions as TestingLibrarySelectorMatcherOptions,
waitForOptions,
Expand Down Expand Up @@ -189,7 +190,7 @@ export interface Queries extends QueryMethods {
getNodeText(el: Element): Promise<string>
}

export interface ConfigurationOptions {
testIdAttribute: string
asyncUtilTimeout: number
}
export type ConfigurationOptions = Pick<
TestingLibraryConfig,
'testIdAttribute' | 'asyncUtilTimeout'
>

0 comments on commit b9c1937

Please sign in to comment.