Skip to content

Add include node modules option for code coverage #19836

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: main
Choose a base branch
from

Conversation

DrSammyD
Copy link

@DrSammyD DrSammyD commented May 22, 2025

What does this PR do?

This adds a flag to not exclude node_modules from code coverage. This is useful when you want to see the coverage of the dependencies you are using, potentially to identify code paths that are not being depended on for tree shaking purposes.

It has

  • Documentation changes
  • Code changes

How did you verify your code works?

I wrote automated test

  • I included a test for the new code, or an existing test covers it

@DrSammyD
Copy link
Author

This is a prerequisite for #19835

@DrSammyD DrSammyD changed the title Add include node modules option Add include node modules option for code coverage May 22, 2025
@Jarred-Sumner
Copy link
Collaborator

Looks like the file paths need to be normalized in the test to support Windows

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