eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn test output is marked as [ERROR]

mihhail-lapushkin opened this issue · comments

Do you want to request a feature or report a bug?
bug

What is the current behavior?
yarn test output is marked as [ERROR]

[INFO] yarn test v0.21.3
[INFO] $ react-scripts test --env=jsdom 
[ERROR]  PASS  src/component/SomeComponent.test.js
[ERROR] 
[ERROR] Test Suites: 1 passed, 1 total
[ERROR] Tests:       1 passed, 1 total
[ERROR] Snapshots:   0 total
[ERROR] Time:        1.455s
[ERROR] Ran all test suites.
[INFO] Done in 2.31s.

If the current behavior is a bug, please provide the steps to reproduce.

  1. create an app using create-react-app
  2. write some tests in Jest
  3. run some tests using:
          <execution>
            <id>test</id>
            <goals>
              <goal>yarn</goal>
            </goals>
            <phase>test</phase>
            <configuration>
              <arguments>test</arguments>
              <environmentVariables>
                <CI>true</CI>
              </environmentVariables>
            </configuration>
          </execution>

What is the expected behavior?
should be on [INFO] I guess

Please mention your frontend-maven-plugin and operating system version.
1.4
node 6.10.0
yarn 0.21.3
macOS 10.11.6

This sounds similar to #411.

This is a feature, not a bug.
frontend-maven-plugin takes all output from stderr and forwards it as ERROR logs, and all output from stdout forwarded as INFO logs.
We have no control over where yarn chooses to send its log output.