Skip to content

Conversation

9aoy
Copy link
Contributor

@9aoy 9aoy commented Aug 29, 2025

Summary

exclude patterns should be merged with rstest default value.

Related Links

Checklist

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

@Copilot Copilot AI review requested due to automatic review settings August 29, 2025 09:34
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 fixes the behavior of exclude patterns in the rstest configuration to merge custom exclude patterns with the default patterns instead of overriding them completely.

  • Moved the temporary rstest output directory glob to the default exclude patterns
  • Removed the manual concatenation logic that was overriding the default patterns
  • Updated documentation to clarify that custom exclude patterns are merged with defaults

Reviewed Changes

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

Show a summary per file
File Description
packages/core/src/config.ts Fixed exclude pattern merging logic by moving temp dir pattern to defaults and removing override behavior
e2e/rstest.config.ts Simplified exclude configuration to only include fixture patterns, relying on default patterns for common exclusions
e2e/exclude/index.test.ts Added comprehensive tests to verify default exclude patterns work with and without custom excludes
e2e/exclude/fixtures/index.test.ts Added test fixture file for exclude pattern testing
e2e/scripts/index.ts Added expectExecFailed helper function for testing failure scenarios
website/docs/en/config/test/exclude.mdx Updated English documentation to clarify merge behavior
website/docs/zh/config/test/exclude.mdx Updated Chinese documentation to clarify merge behavior

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

Copy link

netlify bot commented Aug 29, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit b4c95e5
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68b17425eaa7720008b2fe74
😎 Deploy Preview https://deploy-preview-523--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant