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

[Feature]: simplify output logs in integration tests #4906

Open
9aoy opened this issue Nov 3, 2023 · 1 comment
Open

[Feature]: simplify output logs in integration tests #4906

9aoy opened this issue Nov 3, 2023 · 1 comment

Comments

@9aoy
Copy link
Collaborator

9aoy commented Nov 3, 2023

What problem does this feature solve?

There are too many log outputs in the integration test, and it is difficult to locate the actual error case information.

for example, it is difficult to locate the actual error location of this test:
https://github.com/web-infra-dev/rspack-ecosystem-ci/actions/runs/6740600034/job/18323917427

  • This error often appears, but it has no impact on the actual test. Can it be fixed or hidden?
image
  • This is an expected output. Can this log not be displayed?
image

What does the proposed API look like?

none

@Timeless0911
Copy link
Collaborator

Timeless0911 commented Nov 21, 2023

Maybe we can set
jest.spyOn(process.stdout, 'write').mockImplementation(jest.fn());
jest.spyOn(process.stderr, 'write').mockImplementation(jest.fn());
in jest.setup.js

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

No branches or pull requests

2 participants