使用 Cypress.io 在 Maven 项目中测试 React

Using Cypress.io to test React in a Maven project

我目前正在做一个项目,想使用 Cypress 为我在 React 中制作的应用程序编写测试。然而,Maven 似乎表现不佳,经过大量 Google-Fu 我被卡住了。似乎我缺少模块的一部分,但我无法找到哪种模块。Here is an image of said failure.

我错过了什么?提前致谢。

缺少包 maven 编译器插件报告在 mozilla rhino jar 中。尝试将以下依赖项添加到您的 pom.xml

<dependency>
    <groupId>org.mozilla</groupId>
    <artifactId>rhino</artifactId>
    <version>1.7.8</version>
</dependency>