Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn test output is marked as [ERROR] #584

Closed
mihhail-lapushkin opened this issue Mar 30, 2017 · 2 comments
Closed

yarn test output is marked as [ERROR] #584

mihhail-lapushkin opened this issue Mar 30, 2017 · 2 comments

Comments

@mihhail-lapushkin
Copy link

mihhail-lapushkin commented Mar 30, 2017

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

@mriehema
Copy link
Contributor

This sounds similar to #411.

@eirslett
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants