我想使用cypress-react-unit-test包独立地测试我们的React组件。几天后,我一直无法让它与现有的React Webpack配置一起工作。当我通过Cypress的窗口打开文件时,我得到了错误:TypeError: path argument is required to res.sendFile。 我使用他们的示例存储库中的文件进行测试:https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/unit-testing__react/greeting.jsx 我们确实使用了Type