forked from testing-library/pptr-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Horia Ivan
committed
Jun 9, 2022
1 parent
860106b
commit f266471
Showing
14 changed files
with
20,005 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
node_modules/ | ||
coverage/ | ||
.nyc_output/ | ||
dist/ | ||
npm-debug.log | ||
|
||
dom-testing-library.js | ||
extend.js | ||
extend.d.ts | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { IScopedQueryUtils } from './typedefs'; | ||
declare module 'puppeteer' { | ||
interface Page { | ||
getDocument(): Promise<ElementHandle>; | ||
} | ||
interface ElementHandle extends IScopedQueryUtils { | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ElementHandle, Page } from 'puppeteer'; | ||
import { IConfigureOptions, IQueryUtils, IScopedQueryUtils } from './typedefs'; | ||
declare type ContextFn = (...args: any[]) => ElementHandle; | ||
export declare function getDocument(_page?: Page): Promise<ElementHandle>; | ||
export declare function wait(callback: () => void, { timeout, interval }?: { | ||
timeout?: number; | ||
interval?: number; | ||
}): Promise<{}>; | ||
export declare const waitFor: typeof wait; | ||
export declare function configure(options: Partial<IConfigureOptions>): void; | ||
export declare function getQueriesForElement<T>(object: T, contextFn?: ContextFn): T & IQueryUtils & IScopedQueryUtils; | ||
export declare const within: typeof getQueriesForElement; | ||
export declare const queries: IQueryUtils; | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.