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 May 2, 2022
1 parent 1e75b4e commit 19c9ebd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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,6 +190,4 @@ export interface Queries extends QueryMethods {
getNodeText(el: Element): Promise<string>
}

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

0 comments on commit 19c9ebd

Please sign in to comment.