Я пытаюсь запустить шутку с пряжей из Maven.
Maven запускает пряжу с помощью следующей команды:
react-scripts test --https-proxy=<myproxy> --proxy=<myproxy>
когда эта команда будет вызвана, я получу:
[ERROR] ▒? Unrecognized CLI Parameters:
[ERROR]
[ERROR] Following options were not recognized:
[ERROR] ["https-proxy", "httpsProxy", "proxy"]
[ERROR]
[ERROR] CLI Options Documentation:
[ERROR] https://jestjs.io/docs/en/cli.html
[ERROR]
[ERROR] error Command failed with exit code 1.
Похоже, что информация о прокси не разрешена во время запуска шутки.
Может кто-нибудь сказать мне, как я могу избежать этих сообщений erorr?
Конфигурация Maven:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<yarnVersion>${yarn.version}</yarnVersion>
<workingDirectory>${frontendSrcDir}</workingDirectory>
<installDirectory>${project.build.directory}</installDirectory>
</configuration>
<executions>
...
<execution>
<id>test</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>test</arguments>
<environmentVariables>
<CI>true</CI>
</environmentVariables>
</configuration>
</execution>
...