Skip to content

Commit

Permalink
docs: add inline documentation for configure
Browse files Browse the repository at this point in the history
  • Loading branch information
jrolfs committed Sep 17, 2022
1 parent 36c23dc commit cd25797
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,19 @@ export function wait(

export const waitFor = wait

/**
* Configuration API for legacy queries that return `ElementHandle` instances.
* Only `testIdAttribute` and `asyncUtilTimeout` are currently supported.
* @see {@link https://testing-library.com/docs/dom-testing-library/api-configuration}
*
* ⚠️ This API has no effect on the queries that return `Locator` instances. Use
* `test.use` instead to configure the `Locator` queries.
*
* @see {@link https://github.com/testing-library/playwright-testing-library/releases/tag/v4.4.0-beta.2}
*
* @param config
*/
export function configure(config: Partial<Config>): void {
if (!config) {
return
Expand Down

0 comments on commit cd25797

Please sign in to comment.