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

Log output is split before and after the test results #2166

Closed
gaearon opened this issue Nov 24, 2016 · 1 comment · Fixed by #2556
Closed

Log output is split before and after the test results #2166

gaearon opened this issue Nov 24, 2016 · 1 comment · Fixed by #2556

Comments

@gaearon
Copy link
Contributor

gaearon commented Nov 24, 2016

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

I’m reporting a bug.

What is the current behavior?

When I run tests without watcher, I get inline console output in tests: https://gist.github.com/gaearon/a4e3689e878857b8a9415bedfa3456a6.

However when I run the same tests with watcher, console output is sometimes (arbitrarily?) split before and after the test results, like here: https://gist.github.com/gaearon/8f6918b879cd7302658711d44f5eb02b.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can npm install and npm test.

git clone https://github.com/gaearon/react.git jest-console-bug-repro
cd jest-console-bug-repro
git checkout jest-bug-repro-2

yarn
npm test -- --watch ReactIncremental-test

What is the expected behavior?

The console output is either printed before or after the test results. Not split by them.

Run Jest again with --debug and provide the full configuration it prints. Please mention your node and npm version and operating system.

Node 6.3.1
npm 3.10.3

Output: https://gist.github.com/gaearon/5a3d88b9b99b10b08348bd2688cda15c

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants