introduction this year, i divided the articles on unit testing in react using jest and testing-library into two parts: one focused on setup and the other explaining, in general, how the tests are...
本文讲解如何在react应用中使用cypress进行端到端测试。首先安装cypress并配置package.json,然后用`yarn cy:open`打开cypress界面,选择浏览器并创建测试文件,默认保存在`cypress/e2e`目录。测试可通过界面或`yarn cy:run`命令运行。下一篇将介绍测试结构和示例。