reactlynx-testing-library / Config

接口: Config

属性

asyncUtilTimeout

asyncUtilTimeout: number;

定义于

index.d.ts:300


computedStyleSupportsPseudoElements

computedStyleSupportsPseudoElements: boolean;

定义于

index.d.ts:301


defaultHidden

defaultHidden: boolean;

定义于

index.d.ts:302


defaultIgnore

defaultIgnore: string;

default value for the ignore option in ByText queries

定义于

index.d.ts:304


getElementError()

getElementError: (message: null | string, container: Element) => Error;

参数

范围 类型
message null | string
container Element

返回

Error

定义于

index.d.ts:307


showOriginalStackTrace

showOriginalStackTrace: boolean;

定义于

index.d.ts:305


testIdAttribute

testIdAttribute: string;

定义于

index.d.ts:290


throwSuggestions

throwSuggestions: boolean;

定义于

index.d.ts:306

方法

asyncWrapper()

asyncWrapper(cb: (...args: any[]) => any): Promise<any>

参数

范围 类型
cb (...args: any[]) => any

返回

Promise<any>

定义于

index.d.ts:297


eventWrapper()

eventWrapper(cb: (...args: any[]) => any): void

参数

范围 类型
cb (...args: any[]) => any

返回

void

定义于

index.d.ts:299


unstable_advanceTimersWrapper()

unstable_advanceTimersWrapper(cb: (...args: unknown[]) => unknown): unknown

WARNING: unstable prefix means this API may change in patch and minor releases.

参数

范围 类型 描述
cb (...args: unknown[]) => unknown

返回

unknown

定义于

index.d.ts:295

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。