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

feat(test runner): do not mock tty in the worker process #30107

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Mar 25, 2024

This was historically done to make console.log() have colors. However, this makes any other code that checks process.stdout.isTTY incorrectly assume real TTY support.

Node18 and Node20 now respect FORCE_COLOR=1 in console, so our default behavior of forcing colors in the worker process just works out of the box. See nodejs/node#48034.

This comment has been minimized.

This was historically done to make `console.log()` have colors.
However, this makes any other code that checks `process.stdout.isTTY`
incorrectly assume real TTY support.

Node18 and Node20 now respect `FORCE_COLOR=1` in console, so our
default behavior of forcing colors in the worker process
just works out of the box.
Copy link
Contributor

Test results for "tests 1"

4 flaky ⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [webkit-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks

26863 passed, 625 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 911d8ef into microsoft:main Mar 25, 2024
30 checks passed
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

Successfully merging this pull request may close these issues.

2 participants