0

我正在尝试在使用 react-app-rewired 的反应应用程序中运行柏树测试。

我的 package.json 看起来像这样

 "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "cypress open",
    "eject": "react-app-rewired eject"
  },

但是,当我尝试将 cypress 测试作为“yarn test”运行时,出现以下错误

 It looks like this is your first time using Cypress: 6.8.0

  ×  Verifying Cypress can run C:\Users\allek\AppData\Local\Cypress\Cache\6.8.0\Cypress
    → Cypress Version: 6.8.0
Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
4

0 回答 0