UNPKG

@testing-library/dom

Version:

Simple and complete DOM testing utilities that encourage good testing practices.

28 lines (25 loc) 994 B
export interface Config { testIdAttribute: string /** * WARNING: `unstable` prefix means this API may change in patch and minor releases. * @param cb */ unstable_advanceTimersWrapper(cb: (...args: unknown[]) => unknown): unknown // eslint-disable-next-line @typescript-eslint/no-explicit-any asyncWrapper(cb: (...args: any[]) => any): Promise<any> // eslint-disable-next-line @typescript-eslint/no-explicit-any eventWrapper(cb: (...args: any[]) => any): void asyncUtilTimeout: number computedStyleSupportsPseudoElements: boolean defaultHidden: boolean /** default value for the `ignore` option in `ByText` queries */ defaultIgnore: string showOriginalStackTrace: boolean throwSuggestions: boolean getElementError: (message: string | null, container: Element) => Error } export interface ConfigFn { (existingConfig: Config): Partial<Config> } export function configure(configDelta: ConfigFn | Partial<Config>): void export function getConfig(): Config