Skip to content
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

How to make the report always uses specify path? #1583

Open
MelonHjy opened this issue Sep 15, 2024 · 1 comment
Open

How to make the report always uses specify path? #1583

MelonHjy opened this issue Sep 15, 2024 · 1 comment

Comments

@MelonHjy
Copy link

When generating HTML reports with nyc, the directory paths for coverage reports are inconsistent.
For example, when the coverage information includes directories /User/test/pc/common, /User/test/pc/public/src/services, and /User/test/pc/public/src/pages, the resulting report's coverage directory paths appear as common, public/src/services, and public/src/pages.
However, when the coverage information includes only the /User/test/pc/public/src/services and /User/test/pc/public/src/pages directories, the resulting report's coverage directory paths are services and pages.
How can I fix the paths so that the report always uses the part of the path after /User/test/pc?
In other words, regardless of whether /User/test/pc/common is included, the coverage directory paths in the report should always be public/src/services and public/src/pages.

@MelonHjy
Copy link
Author

image

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

No branches or pull requests

1 participant