Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Nov 12, 2025

Summary

  • no need to run files when run npx rstest list --filesOnly
  • update include configuration document

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 12, 2025 07:04
@netlify
Copy link

netlify bot commented Nov 12, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 6e97468
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6914363e95d45200085379e2
😎 Deploy Preview https://deploy-preview-689--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.

Copy link
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 PR optimizes the npx rstest list --filesOnly command by skipping unnecessary test file execution and build operations when only file listing is requested. It also enhances documentation for the include configuration option with additional context and examples.

  • Refactored listTests function to conditionally use lightweight file collection when --filesOnly flag is set
  • Updated documentation to clarify that include patterns are resolved relative to the configured root directory
  • Added examples and explanations of default matching behavior and glob pattern usage

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/core/listTests.ts Extracted test collection logic into collectTests and created new collectTestFiles function that skips build/execution overhead when only listing files
website/docs/en/config/test/include.mdx Enhanced documentation with path resolution details, CLI usage examples, and glob pattern guidance
website/docs/zh/config/test/include.mdx Chinese translation of the enhanced documentation

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

@9aoy 9aoy merged commit 0dbdfcb into main Nov 12, 2025
16 checks passed
@9aoy 9aoy deleted the list-tests-files-only branch November 12, 2025 08:10
@9aoy 9aoy mentioned this pull request Nov 13, 2025
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