UI 测试

@testing-library/react

  • screen.getByText()可以传正则、字符串

  • toBeInTheDocument()

  • 
    

文档

https://testing-library.com/docs/react-testing-library/intro/

posted @ 2024-11-03 18:51  朱在春  阅读(1)  评论(0编辑  收藏  举报