reactlynx-testing-library / getByAltText

函数: getByAltText()

function getByAltText<T>(...args: [HTMLElement, Matcher, MatcherOptions]): ReturnType<GetByBoundAttribute<T>>

类型参数

类型参数默认类型
T extends HTMLElementHTMLElement

参数

范围类型
...args[HTMLElement, Matcher, MatcherOptions]

返回

ReturnType<GetByBoundAttribute<T>>

定义于

index.d.ts:618

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