在Jest中替换为toBeVisible

问题描述

我用react-native安装了用于E2E测试的排毒软件,我看到init命令后有一个 firstTest.e2e.js文件,现在,当我将文件更改为.ts时,我得到了:

属性“ toBeVisible”在类型上不存在 'JestMatchersShape ,Matchers >>> p

 it('should have welcome screen',async () => {
    await expect(element(by.id('check'))).toBeVisible();
    await element(by.id('check')).tap();
  });

我认为开玩笑不建议使用beBeVisible(),我看到了文档,但没有找到替代品。 有人知道我该如何更换它?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...