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

test-runner-core always emits ansi codes to clear progress bars, even if there aren't progress bars #2623

Open
MSLaguana opened this issue Jan 25, 2024 · 0 comments

Comments

@MSLaguana
Copy link

The @web/test-runner-core package includes the TestRunnerCli class, which always has a DynamicTerminal that it references that has no knowledge of the staticLogging configuration variable. The TestRunnerCli will do things like decide not to print progress, but the DynamicTerminal will always try to clear the console via https://github.com/modernweb-dev/web/blob/master/packages/test-runner-core/src/cli/terminal/DynamicTerminal.ts#L133

This means that in non-interactive scenarios like CI, the output will have ansi codes embedded in it with no way to disable it (without drastic measures like monkey patching process.stdout.write) that i can find.

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

1 participant