reactlynx-testing-library / Screen

类型别名: Screen<Q>

type Screen<Q>: BoundFunctions<Q> & object;

类型声明

debug()

debug: (element?: (Element | HTMLDocument)[] | Element | HTMLDocument, maxLength?: number, options?: prettyFormat) => void;

Convenience function for pretty-dom which also allows an array of elements

参数

范围 类型
element? (Element | HTMLDocument)[] | Element | HTMLDocument
maxLength? number
options? prettyFormat

返回

void

logTestingPlaygroundURL()

logTestingPlaygroundURL: (element?: Element | HTMLDocument) => string;

Convenience function for Testing Playground which logs and returns the URL that can be opened in a browser

参数

范围 类型
element? Element | HTMLDocument

返回

string

类型参数

类型参数 默认类型
Q extends Queries typeof queries

定义于

index.d.ts:1430

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