Testing Library findBy* queries only working with async/await

后端 未结 0 322
温柔的废话
温柔的废话 2021-01-29 02:30

From the documentation, findBy queries return a Promise, and throwing an error in a Promise results in a rejection. But it seems like using these queries with

相关标签:
回答
  • 消灭零回复
提交回复
热议问题