modern.js icon indicating copy to clipboard operation
modern.js copied to clipboard

[Feature]: simplify output logs in integration tests

Open 9aoy opened this issue 2 years ago • 1 comments

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

9aoy avatar Nov 03 '23 03:11 9aoy

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

Timeless0911 avatar Nov 21 '23 10:11 Timeless0911