code-coverage icon indicating copy to clipboard operation
code-coverage copied to clipboard

fix: support NYC cwd option for file pattern matching

Open alecmestroni opened this issue 4 months ago • 4 comments

  • 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.

alecmestroni avatar Aug 20 '25 11:08 alecmestroni

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 20 '25 11:08 CLAassistant

cypress-app-bot avatar Aug 20 '25 11:08 cypress-app-bot

Hi @jennifer-shehane any news on this merge request?

Thanks Alec

alecmestroni avatar Sep 10 '25 14:09 alecmestroni

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.

DGAISmith avatar Oct 22 '25 16:10 DGAISmith