Clears screen during watch mode correctly.#3294
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
Thank you so much for fixing this! I'm sorry for the thrash on that issue, my mistake and I apologize. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This change is to prevent the screen from clearing when building for Continuous Integration systems. While the
--watchflag typically wouldn't be used on a CI system, this change gives us a hook into disabling the clear feature that can prevent other processes' output from being seen during a typical development workflow.Test plan
I was able to verify this worked using the
CI=true jest --watchAllnpm-script in my project. Without theCIvalue set, the standard behavior of the screen clearing between watch runs, occurs.Fixes #2959.