modern.js
modern.js copied to clipboard
[Feature]: simplify output logs in integration tests
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?
-
This is an expected output. Can this log not be displayed?
What does the proposed API look like?
none
Maybe we can set
jest.spyOn(process.stdout, 'write').mockImplementation(jest.fn());
jest.spyOn(process.stderr, 'write').mockImplementation(jest.fn());
in jest.setup.js