Skip to content

fix: should respect project's slowTestThreshold configuration#938

Merged
9aoy merged 4 commits intomainfrom
project-slowTestThreshold
Feb 4, 2026
Merged

fix: should respect project's slowTestThreshold configuration#938
9aoy merged 4 commits intomainfrom
project-slowTestThreshold

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Feb 4, 2026

Summary

should respect project's slowTestThreshold / hideSkippedTests / hideSkippedTestFiles configurations

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings February 4, 2026 07:52
Copy link
Copy Markdown
Contributor

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 pull request enables project-specific configuration overrides for slowTestThreshold, hideSkippedTests, and hideSkippedTestFiles in a multi-project testing setup. Previously, these configurations could only be set globally; now each project can have its own settings that override the global defaults.

Changes:

  • Modified type definitions to allow hideSkippedTests and hideSkippedTestFiles in project configurations
  • Updated DefaultReporter and VerboseReporter to respect per-project settings with proper fallback to global config
  • Added projectConfigs map infrastructure to pass project configurations to reporters

Reviewed changes

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

Show a summary per file
File Description
packages/core/src/types/config.ts Removed hideSkippedTests and hideSkippedTestFiles from ProjectConfig exclusion list to allow per-project configuration
packages/core/src/reporter/verbose.ts Added projectConfigs parameter and logic to retrieve project-specific settings for hideSkippedTestFiles, slowTestThreshold, and hideSkippedTests
packages/core/src/reporter/index.ts Added projectConfigs parameter and logic to retrieve project-specific settings with fallback to global config
packages/core/src/core/rstest.ts Created projectConfigs map keyed by project name and passed it to reporter initialization
e2e/projects/index.test.ts Added comprehensive E2E tests for hideSkippedTests, slowTestThreshold, and hideSkippedTestFiles per-project configurations
e2e/projects/fixtures/rstest.slowTest.config.ts Test configuration demonstrating different slowTestThreshold values per project
e2e/projects/fixtures/rstest.projectConfig.config.ts Test configuration demonstrating different hideSkippedTests values per project
e2e/projects/fixtures/rstest.hideSkippedTestFiles.config.ts Test configuration demonstrating different hideSkippedTestFiles values per project
e2e/projects/fixtures/packages/node/test/slow.test.ts Test file with async delay to test slowTestThreshold behavior
e2e/projects/fixtures/packages/node/test/skip.test.ts Test file with skipped test to verify hideSkippedTests behavior
e2e/projects/fixtures/packages/node/test/allSkipped.test.ts Test file with all tests skipped to verify hideSkippedTestFiles behavior
e2e/projects/fixtures/packages/client/test/slow.test.ts Client-side slow test for cross-project slowTestThreshold testing
e2e/projects/fixtures/packages/client/test/skip.test.ts Client-side skip test for cross-project hideSkippedTests testing
e2e/projects/fixtures/packages/client/test/allSkipped.test.ts Client-side all-skipped test for cross-project hideSkippedTestFiles testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@9aoy 9aoy changed the title ix: should respect project's slowTestThreshold configuration fix: should respect project's slowTestThreshold configuration Feb 4, 2026
@9aoy 9aoy merged commit 5a5916e into main Feb 4, 2026
9 checks passed
@9aoy 9aoy deleted the project-slowTestThreshold branch February 4, 2026 09:26
@9aoy 9aoy mentioned this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants