code-coverage
code-coverage copied to clipboard
fix: support NYC cwd option for file pattern matching
- 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.
- Create a Draft Pull Request if your PR is not ready for review. Mark the PR as Ready for Review when you're ready for a Cypress team member to review the PR.
Hi @jennifer-shehane any news on this merge request?
Thanks Alec
Any info on this one? Would be super useful to us in our monorepo, where the cypress tests are in a different sibling folder to our apps.