Skip to content

fix: support NYC cwd option for file pattern matching #964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

alecmestroni
Copy link

  • Add support for NYC 'cwd' option in findSourceFiles function
  • Pass cwd option to globby for proper file pattern resolution
  • Add test case 'all-files-cwd' to verify cwd functionality
  • Update CI configuration to include new test case in matrix

This fix ensures that when NYC is configured with a 'cwd' option, the file patterns are resolved relative to the specified directory instead of the current working directory.

- Add support for NYC 'cwd' option in findSourceFiles function
- Pass cwd option to globby for proper file pattern resolution
- Add test case 'all-files-cwd' to verify cwd functionality
- Update CI configuration to include new test case in matrix

This fix ensures that when NYC is configured with a 'cwd' option,
the file patterns are resolved relative to the specified directory
instead of the current working directory.
@CLAassistant
Copy link

CLAassistant commented Aug 20, 2025

CLA assistant check
All committers have signed the CLA.

@cypress-app-bot
Copy link

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.

3 participants