Skip to content

Conversation

Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Sep 23, 2025

Summary

Set logLevel to 'warn' when running tests to make test logs clear.

Tests related to log messages should call proxyConsole when writing tests.

image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 09:24
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes test log levels across the test suite to reduce noise and improve test output clarity. The changes introduce a configurable logLevel parameter to the test helper functions and update various test files to use consistent logging practices.

  • Adds logLevel parameter to buildAndGetResults function with 'warn' as default
  • Updates import statements to use consistent patterns from @rstest/core
  • Modifies specific tests to use appropriate log levels for their testing needs

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/scripts/shared.ts Adds logLevel configuration to test helper functions
tests/integration/entry/index.test.ts Sets info log level for duplicate entry test
tests/integration/cli/mf/mf.test.ts Consolidates imports from @rstest/core
tests/integration/cli/log-level/index.test.ts Consolidates imports from @rstest/core
tests/integration/cli/inspect/inspect.test.ts Consolidates imports from @rstest/core
tests/integration/cli/build-watch/build.test.ts Updates imports and changes stdio to pipe for cleaner output
packages/core/tests/config.test.ts Adds silent log level to test configuration
packages/core/tests/snapshots/config.test.ts.snap Updates snapshot with silent log level

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Timeless0911 Timeless0911 merged commit e616a61 into main Sep 23, 2025
19 checks passed
@Timeless0911 Timeless0911 deleted the logs branch September 23, 2025 10:01
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